I'm trying to bring up a new Apache web server while maintaining
compatibility with the platform the old server ran on.
The only problem is CGI applications which potentially need to be
recompiled on the new platform to work.
I tried to deal with this as follows:
Using mod_rewrite, I put some lines like this in srm.conf:
Rewri*gine on
RewriteLog logs/rewrite_log
RewriteLogLevel 2
RewriteRule ^/cgi-bin/(.*) http://www.veryComputer.com/$1 [T=application/x-httpd-cgi,L]
info0.dr.lucent.com is the old, SunOS server.
I wanted to let developers of CGI applications individually control
whether URLs to their directories would get redirected via the .htaccess
file. I did some casual testing and found that a .htaccess with the
line
Rewri*gine off
seemed to have the desired effect.
Now that I have deployed this solution, I'm finding that the .htaccess
sometimes seems to be ignored.
Does apache observe the .htaccess file when processing a POST? Is it
necessary to set some option to make this happen?
In access.conf I have:
<Directory /home/www/cgi-bin>
AllowOverride All
Options FollowSymLinks
</Directory>
and
<Directory /home/www/doc_root>
.
.
.
Options Indexes FollowSymLinks
AllowOverride All
.
.
.
</Directory>
srm.conf has:
AccessFileName .htaccess
--
Computing and Telecommunications Services Unix System Administration Team
http://www.veryComputer.com/~lmulcahy/home.html
Linux: It is now safe to turn on your computer.