Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache : Virtual host to access files on separate drive -> FORBIDDEN 1

Status
Not open for further replies.

jpo245

Programmer
Jan 16, 2005
45
US
Hi guys, virtual hosts to separate directories in my docroot folder work fine. but when i set up a virtual host to a separate drive, i get the forbidden error! I remember i got this to work lastime, but now it doesnt seem to work!

####This one is fine######
<VirtualHost *:80>

DocumentRoot "D:/webroot/raw/332labs"
ServerName lab.rathernifty.com

#Other directives here


</VirtualHost>

####This one gives a FORBIDDEN ERROR#####
<VirtualHost *:80>

DocumentRoot "H:/Media"
ServerName mp3.rathernifty.com

#Other directives here
<Directory "H:/Media">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

Any help?

Thanks a bunch!
 
Well I don't know if you have figured it out but I was able to connect to mp3.rathernifty.com and start downloading anyone of those files(I canceled half way through the download). BTW. You might want to change the URL or remove those slightly copyrighted files. It looks like it is working from my point of view.
 
hi rburke.. oops i meant to change the directory that was linked to the files before people could grab them..

anyways, it works now only because i was linking to a folder within my webroot directory.

if i link to a separate drive, it still gives that error...

any idea whats going on?

many thanks for the heads up!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top