Author |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Sun 13 Jan '13 1:39 Post subject: Hosting a folder on a different partition |
|
|
I'm hosting most of my websites from my C drive where apache is installed.
However I want one website to be loaded from my D drive so I setup the following virtual host:
<Directory "D:\hac2">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost 46.249.47.12:80>
ServerName hac2.elitegameservers.net
DocumentRoot "D:\hac2"
</VirtualHost>
But I keep getting 403 errors, anyway of fixing this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 13 Jan '13 11:26 Post subject: |
|
|
I don't see there an issue with the config itself. What is in the log files about it?
What about the permission settings from Windows / NTFS of that folder?
Since there is as option no Indexes, is there any file in the folder? |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Sun 13 Jan '13 14:02 Post subject: |
|
|
The log file says:
[Sun Jan 13 10:28:23.589477 2013] [authz_core:error] [pid 1678712:tid 4364] [client 31.19.202.35:3836] AH01630: client denied by server configuration: D:/hac2/
[Sun Jan 13 10:28:23.679566 2013] [authz_core:error] [pid 1678712:tid 4364] [client 31.19.202.35:3836] AH01630: client denied by server configuration: D:/hac2/favicon.ico
[Sun Jan 13 10:28:32.160631 2013] [authz_core:error] [pid 1678712:tid 4364] [client 31.19.202.35:3836] AH01630: client denied by server configuration: D:/hac2/index.htm
[Sun Jan 13 10:28:42.260238 2013] [authz_core:error] [pid 1678712:tid 4364] [client 31.19.202.35:3836] AH01630: client denied by server configuration: D:/hac2/robots.txt
There is an index.php file in there and a /maps folder.
This is set in my httpd.conf:
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 17 Jan '13 15:18 Post subject: |
|
|
Quote: | What about the permission settings from Windows / NTFS of that folder? |
|
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Sun 20 Jan '13 0:11 Post subject: |
|
|
Every user has all rights for the folder and files. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 20 Jan '13 0:44 Post subject: |
|
|
What version of Apache is this?
If 2.4, use
Require all granted
instead of
Order Allow,Deny
Allow from all |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Sun 20 Jan '13 17:23 Post subject: |
|
|
glsmith wrote: | What version of Apache is this?
If 2.4, use
Require all granted
instead of
Order Allow,Deny
Allow from all |
Thanks that fixed it |
|
Back to top |
|