durusmail: quixote-users: Help with web server configuration for Quixote
Help with web server configuration for Quixote
2003-02-18
Help with web server configuration for Quixote
Andy Todd
2003-02-18
All,

I'm having a spot of bother configuring redirects in Apache and wondered if
anyone could provide suggestions or point me in the right direction to resolve
my problem.

I've copied the advice in the web server configuration document to the letter (I
think) but cannot get the redirect for the demo application to work (on either
Windows or Linux). The application works fine (thanks very much, love your work)
but putting the following lines into my httpd.conf doesn't seem to work;

RewriteEngine on
RewriteRule ^/qdemo(/.*) /usr/lib/cgi-bin/demo.cgi$1 [last]

If I then type http://127.0.0.1/qdemo/ into my browser URL I got a 404 - Not
Found. If I remove the trailing '$1' the actual cgi script is rendered in my
browser window as text. I get the same problems on Windows.

The error log contains the line

File does not exist: /usr/lib/cgi-bin/demo.cgi

But if I type http://127.0.0.1/cgi-bin/demo.cgi everything works fine. I've
turned on Rewrite logging and set the level to 9, this then shows that the
rewrite is working correctly and 'qdemo/' is turned into /usr/lib/cgi-
bin/demo.cgi'.

Any suggestions?

Regards,
Andy
--
--------------------------------------------------------------------------------
>From the desk of Andrew J Todd esq - http://www.halfcooked.com/

reply