Forum Moderators: phranque

Message Too Old, No Replies

redirect to CGI script

         

immasavagebeast

2:23 pm on Oct 11, 2011 (gmt 0)

10+ Year Member



I have redirect all incoming traffic to the http://example.foo.bar to run a cgi script. The doc root is /var/www/html and the script resides in /opt/foo/bar/example1/cgi-bin/ directory. Please help me troubleshoot this. Currently it's set up my http.conf is set up for this as such:

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

#.htaccess located in the doc root
RewriteEngine on
RewriteCond %{HTTP_HOST} !^example\.foo\.bar$[NC]
RewriteRule ^example1.html$ example2.cgi

phranque

1:17 am on Oct 13, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, immasavagebeast!

Please help me troubleshoot this.

please describe the symptoms of your problem.