Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 06, 2007 5:13 pm 
Offline

Joined: Fri Jul 06, 2007 5:03 pm
Posts: 1
I've got an .htaccess file, and everything works except the redirection to HTTPS. If I remove everything else, that part works, but when it's all there together, it fails.

Thanks in advance for any help you can offer!


# require a password
AuthUserFile /blah/blah/blah/.htpasswd
AuthGroupFile /dev/null
AuthName Locked_Down
AuthType Basic
<Limit GET>
require valid-user

order deny,allow
# allow from office network:
allow from x.y.z
# allow from my home office IP:
allow from a.b.c.d
# deny from everyone else:
deny from all
</Limit>


# force HTTPS
# this worked in tests in isolation, but not here:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteEngine Off

_________________
--
"The programmer, like the poet, works only slightly removed from pure thought-stuff. He builds his castles in the air, from air, creating by exertion of the imagination."
-- Fred Brooks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group