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: Question about alias directory |
|
Author |
|
kenboyles72
Joined: 18 Oct 2006 Posts: 6
|
Posted: Wed 17 Oct '07 0:49 Post subject: Question about alias directory |
|
|
I have a tech forum setup for my web site and the files are within the cgi folder for Apache. When you go to the forum, in the addy bar, it shows the path of the perl script. ie: www.somewebsite/cgi-bin/forum_folder/perl_script.pl. Can I create an alias for the forum folder and have a specific script set as the index file. Like when I type the addy, www.somesite/forum/, the initial script would automatically load. Does this make any sense? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 17 Oct '07 1:33 Post subject: |
|
|
Is there something specific about the Alias directive you do not understand?
One thing you need to keep in mind is it is tricky on the trailing slash, have it on one side must be on the other
e.g. Alias /whatever "c:/www/mysite/whatever"
or
Alias /whatever/ "c:/www/mysite/whatever/"
Cannot be a mish-mash of the two
Look up DirectoryIndex in the Docs as well. |
|
Back to top |
|
|
|
|
|
|