1. In your "thin" httpd.conf proxy back all cgi-bin requests.
Code:
ProxyPass /cgi-bin/ http://localhost:81/cgi-bin/ ProxyPassReverse /cgi-bin/ http://localhost:81/cgi-bin/
Code:
<Location /cgi-bin/> SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>
Code:
<Location /cgi-bin/links/> SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
Code:
<Location /cgi-bin/ugly_script/> SetHandler cgi-script
Options ExecCGI
</Location>
Well, you should have asked here. =) To do that you should use ReWrite:
Code:
RewriteEngine On RewriteRule /(.*)\.php(.*) http://localhost:81/$1.php$2 [P,L]
Let me know if you have any other questions, or want a fuller example.
Cheers,
Alex
--
Gossamer Threads Inc.