Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Some vHosts not working |
|
Author |
|
Andi04
Joined: 26 Oct 2013 Posts: 6 Location: Sweden
|
Posted: Sat 14 Jan '17 14:22 Post subject: Some vHosts not working |
|
|
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
|
Posted: Sat 14 Jan '17 16:27 Post subject: |
|
|
What does the error_log say for the 403? |
|
Back to top |
|
|
|
|
|
|