Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_rewrite: directory override?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aztech
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2002
Posts: 130
Location: Stenungsund, Sweden

PostPosted: Wed Apr 27, 2011 12:47 pm    Post subject: mod_rewrite: directory override? Reply with quote

Senario:

I want my server at home, to always force HTTPS, when surfing to it.
I've done this by adding the following in my default hostfile and it's working like a charm.
Code:

RewriteEngine   on
RewriteCond     %{SERVER_PORT} ^80$
RewriteRule     ^(.*)$ https://%{SERVER_NAME}$1 [L,R]


The thing is that I've just installed Xaseco Stats, for some nice stats of my Trackmania Server
and for this specific web-dir, I'd like to turn Off the forcing of HTTPS.
This is because of that I'm using a selfsigned SSL-cert and when browsing these stats, ppl will get
the SSL-cert "invalid" dialog in their browsers.

I'd like to bypass this by disable rewriting for "/tmstats" on the server, but I can't figure out how to do it,
so I'm asking for help here.

I'm running Apache2 btw.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum