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!

List directory, which is on other drive than Apache?!?

Status
Not open for further replies.

Ceko

Technical User
Mar 31, 2003
2
BG
Hello,
i've a problem with Apache 2.0.44 and Win 2000 server.
I want to list the content of a directory, which is on drive H: (H:\stuff) on my PC. The apache is installed on drive I:, and the htdocs locates in I:\htdocs. Is there a way to make a link from the index.html in htdocs, pointing to H:\stuff? I tried to make a link ( but received a message:

Forbidden
You don't have permission to access /h|/stuff/ on this server.

------------------------------------------------------
Apache/2.0.44 (Win32) Server at 192.168.9.5 Port 80

If the directory stuff is in I:\htdocs\stuff, there is no problem, but i can't move it there... Some guys told me, to look at aliases, but i can't understand them...

Sorry for the bad english :)
I hope you understand me,
thanks to all

Regards, Ceko
 
Hi mate,

If you add the following to the httpd.conf then you can call this directory by
Code:
    Alias /stuff/ "H:/stuff/"

    <Directory &quot;H:/stuff&quot;>
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top