LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help with Apache Cgi-bin? (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-apache-cgi-bin-749050/)

your_shadow03 08-20-2009 11:03 AM

Need Help with Apache Cgi-bin?
 
I have a website named http://localhost/cgi-bin/irc.cgi.I have the following entry in /etc/httpd/conf/httpd.conf as:
Code:

ScriptAlias /cgi-bin "/var/www/cgi-bin"
I dont want cgi-bin/irc.cgi entry. I just want users to use:
http://<IPADDRESS>/chat

What entry I need to make?

centosboy 08-21-2009 06:22 AM

Quote:

Originally Posted by your_shadow03 (Post 3651049)
I have a website named http://localhost/cgi-bin/irc.cgi.I have the following entry in /etc/httpd/conf/httpd.conf as:
Code:

ScriptAlias /cgi-bin "/var/www/cgi-bin"
I dont want cgi-bin/irc.cgi entry. I just want users to use:
http://<IPADDRESS>/chat

What entry I need to make?

what you want is a redirect


taken from the apache config file
Code:

# Example:
# Redirect permanent /foo http://www.example.com/bar

or

Code:

http://www.webweaver.nu/html-tips/web-redirection.shtml


All times are GMT -5. The time now is 06:06 PM.