[Webdev] Probelm with RewriteRule on Apache

Philip Reynolds phil at redbrick.dcu.ie
Fri Jul 5 06:42:47 IST 2002


Conor Lynch's [majorbeer at hotmail.com] 26 lines of wisdom included:
> Hi there,
>     I have included the following lines at the end of my apache 
> configuration file (httpd.conf).
> On my development servers these lines ensure that a link ending with :SLL 
> which be rewritten as a link starting with https://
> 
>     RewriteEngine on
>     RewriteRule   ^/(.*):SSL$   https://%{SERVER_NAME}/$1 [R,L]
> 
> HOWEVER, on my production server this does not work, any reason why these 
> lines may be ignored or any configuration settings that may be required to 
> use them would be greatly appreciated.


I haven't got a lot of time right now, put perhaps if there was
relevant messages in error_log, access_log you could mail them here.
If there's not, turn Rewrite Logging up to 3 or 4 and try your
requests again.

Post the errors here, it will help whoever is trying to debug your
problem.

Also, if you could post the platform, version(s) of apache and any
errors 'apachectl configtest' produces, it would be of help.

Regards,
-- 
  Philip Reynolds        
   RFC Networks          tel: 01 8832063
www.rfc-networks.ie      fax: 01 8832041




More information about the Webdev mailing list