Its a long time since I used rewrite.
Conor Lynch hath declared on Friday the 05 day of July 2002 :-:
> >From the error_log the error is as follows:
> [Fri Jul 5 09:01:16 2002] [error] [client 195.7.63.226] File does not
> exist: /opt
> /OraHome/Apache/Apache/htdocs/bui/bupa.ie/xsql/pre_confirm/pre_confirm.xsql:SSL
This would suggest that Rewrite isn't working, or the rule isn't being matched.
> >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]
Are these on the same line ?
I wouldn't have thought ``configtest'' would have liked that.
For some reason I always put my RewriteRule's within <VirtualHost>'s
however I don't recall why I do that....
Ensure that Rewrite is configured for your apache, either by ``httpd -l''
or ``LoadModule rewrite_module...'' in your httpd.conf.
Try something like the following...
RewriteEngine on
RewriteLog /foo/bar/logs/rewrite_log
RewriteLogLevel 9
<VirtualHost blah>
...
RewriteEngine On
RewriteOptions inherit
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
...
</VirtualHost>
There should be _lots_ of debugging stuff in your rewrite_log which should
help you sort out whats going of, if not post a snippit to the list and we will
see what we can do.
NOTE: Remember to drop the LogLevel to 1 or 0 once you get it working...
- bobb
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!