On Tue, 2003-07-08 at 11:22, Rodolfo J. Paiz wrote: > IT WORKS! > > I can do no less than to bow down before you, and buy you virtual beer. And > if you're ever in Guatemala, I'll make it real beer (or anything else you > care to drink). > > The syntax is pretty damn close to what I had, but I changed the main > server configuration to default settings again (in effect, not using the > main server block) and put this into a VirtualHost and... BAM! right > through the first time. For the record, this is my VirtualHost block: > > <VirtualHost *> > ServerName apollo.paiz.org > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /var/www/apollo.paiz.org > > RewriteEngine on > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R,NC] > </VirtualHost> > > Any page requested, any page at all, is instantly and transparently > rewritten to use HTTPS. Beautiful. Just... beautiful. >
Congratulations! It is nice to be able to have the auto-redirect for all pages. mod_rewrite is a bit touchy, but when you get it dialed-in it is a great tool. Enjoy! - rick warner -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list