You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by St...@astrazeneca.com on 2002/01/09 09:48:33 UTC

mod_rewrite conflict with other modules

Hi!

I'm using the mod_plsql module to be able to run Oracle's PL/SQL Procedures
from the database.
I'm using the Apache shipped and pre-configured with Oracle8i Application
Server.

Now I want to make myself a maintenance function using mod_rewrite to send
some (not all) requests, with destination to the mod_plsql module, instead
to a maintenance page informing users that the site is down for the moment.

The Rewriting works fine for static files e.g
  RewriteRule   ^/sfa/test(.*) /sfa/maintenance.htm

but not when the regular expression matches another module.

Anyone know how to make this work?

---httpd.conf -------------------------
...
<IfModule mod_plsql.c>

<Location /pls>
  SetHandler pls_handler
  Order deny,allow
  Allow from all
</Location>
...

<VirtualHost>
...
RewriteEngine on
RewriteRule ^/pls/sfa* /sfa/maintenance.htm
...
</VirtualHost>
---------------------------------------

Regards
/Stefan Fägersten, InfoGrator

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: mod_rewrite conflict with other modules

Posted by Joshua Slive <jo...@slive.ca>.
> From: Stefan.Faegersten@astrazeneca.com

> RewriteEngine on
> RewriteRule ^/pls/sfa* /sfa/maintenance.htm

To start with, you almost certainly want ".*" rather than just "*".

You might also try adding [PT] to the end.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org