Forum Moderators: phranque

Message Too Old, No Replies

Apache - Website Redirection Help

         

cbarone

1:46 pm on Sep 29, 2005 (gmt 0)



Hello

I am running a script called perldesk on Apache 2 on a private lan.

Currently users have to go to http://support.example.org/cgi-bin/pdesk.cgi to pull up the main URL.

I want end users use http://support.example.org and pull up the main link referenced above.

How would I accomplish this. Detailed directions needed...newbie at Linux. I rec'd some info on another forum about mod_rewrite but was unable to setup. Note, this is the only website on this web server so the easiest method would be appreciated.

Thanks,

Chris B.

[edited by: jdMorgan at 4:18 pm (utc) on Sep. 29, 2005]
[edit reason] Examplified. [/edit]

jdMorgan

4:16 pm on Sep 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Chris,

Welcome to WebmasterWorld!

See Apache mod_alias [httpd.apache.org], and the ScriptAliasMatch directive:


ScriptAliasMatch ^/$ /<server_path_to_site_files>/cgi-bin/pdesk.cgi

This line would go into your httpd.conf file. The <server_path_to_site_files> will have to be adjusted to the correct location of the /cgi-bin directory.

You could also use mod_rewrite, but the above method is simpler.

Jim