logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Some vHosts not working
Author
Andi04



Joined: 26 Oct 2013
Posts: 6
Location: Sweden

PostPosted: Sat 14 Jan '17 14:22    Post subject: Some vHosts not working Reply with quote

I have finaly setup my server at home and I almost done. But One problem is left behind

The following vHost works with this configuration:
Code:

<VirtualHost *:80>
   ServerName www.mydomain.se
   ServerAlias www.mydomain.se
   DocumentRoot "c:/www/vhosts/main"
   <Directory  "c:/www/vhosts/main/">
      Options +Indexes +Includes +FollowSymLinks +MultiViews
      AllowOverride All
      Require all granted
   </Directory>
</VirtualHost>


But the vHost with this configuration gives me "Forbidden"
Code:

<VirtualHost *:80>
   ServerName site2.mydomain.se
   ServerAlias site2.mydomain.se
   DocumentRoot "c:/www/vhosts/site2"
   <Directory  "c:/www/vhosts/site2/">
      Options +Indexes +Includes +FollowSymLinks +MultiViews
      AllowOverride All
      Require all granted
   </Directory>
</VirtualHost>


Am I missing something? Why does www.mydomain.se work but not site2.mydomain.se work?
Back to top
covener



Joined: 23 Nov 2008
Posts: 59

PostPosted: Sat 14 Jan '17 16:27    Post subject: Reply with quote

What does the error_log say for the 403?
Back to top


Reply to topic   Topic: Some vHosts not working View previous topic :: View next topic
Post new topic   Forum Index -> Apache