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: Hosting a folder on a different partition
Author
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Sun 13 Jan '13 1:39    Post subject: Hosting a folder on a different partition Reply with quote

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: 7372
Location: Germany, Next to Hamburg

PostPosted: Sun 13 Jan '13 11:26    Post subject: Reply with quote

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

PostPosted: Sun 13 Jan '13 14:02    Post subject: Reply with quote

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: 7372
Location: Germany, Next to Hamburg

PostPosted: Thu 17 Jan '13 15:18    Post subject: Reply with quote

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

PostPosted: Sun 20 Jan '13 0:11    Post subject: Reply with quote

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

PostPosted: Sun 20 Jan '13 0:44    Post subject: Reply with quote

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

PostPosted: Sun 20 Jan '13 17:23    Post subject: Reply with quote

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 Very Happy
Back to top


Reply to topic   Topic: Hosting a folder on a different partition View previous topic :: View next topic
Post new topic   Forum Index -> Apache