[lug] Web server authentication issue

Zan Lynx zlynx at acm.org
Tue Aug 28 17:08:46 MDT 2012


On Tue, 2012-08-28 at 09:26 -0600, Ryan J Nicholson wrote:
>                 RewriteCond %{HTTP_HOST} !^www
>                 RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} 

Just an offtopic comment here...

I recall once having a similar config. We copied the config to a test
server that didn't have a "www" name and got wacky redirect loops.

I don't remember the syntax perfectly but perhaps you could do a
RewriteCond %{HTTP_HOST} !^https://%{SERVER_NAME}

Might be more robust against copying around to other servers, if that
ever happens.
-- 
Knowledge Is Power
Power Corrupts
Study Hard
Be Evil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20120828/1c419bdb/attachment.pgp>


More information about the LUG mailing list