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: cgi-bin subdirectory alias |
|
Author |
|
hjames
Joined: 06 Sep 2012 Posts: 1 Location: Canada, St.Catharines ON
|
Posted: Sat 08 Sep '12 13:13 Post subject: cgi-bin subdirectory alias |
|
|
I've just switched to a Virtuozzo VDS server and have to set everything up from scratch. For years I had an alias www.domain.com/this/forum/YaBB.cgi which pointed to www.domain.com/cgi-bin/that/YaBB.cgi. I've tried various things in the http.conf file to get this working again, with no luck.
Even after looking at many examples I am still confused. Can you set an Alias for a path (/this/forum/) or just for a directory (/forum/)? Since the cgi-bin (and subdirectories) are already set to run scripts, can I just use an Alias to /cgi-bin/this/ or should it be a ScriptAlias, and do I need to specify <Directory Options, etc> for this Alias even though they are already set by the cgi-bin ScriptAlias?
While I'm at it, I've seen in various sites generating multiple pages with a single cgi script that the script name (eg. YaBB.cgi) is not specified in the address with only parameters showing up after the final path slash. How does this work?
thanks,
Henry |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 10 Sep '12 18:12 Post subject: |
|
|
I think as with mod_alias you can do something like
ScriptAlias /this/forum/ /path_to/cgi-bin/that/
or just
ScriptAlias /forum/ /path_to/cgi-bin/that/ |
|
Back to top |
|
|
|
|
|
|