[nycbug-talk] OT: Apache/mod_rewrite question

Okan Demirmen okan at demirmen.com
Sun Jan 28 22:54:17 EST 2007

On Sun 2007.01.28 at 22:36 -0500, Kevin Reiter wrote:
> All,
> I've been trying to figure this out for a few hours now, and I can't 
> quite get it working, and I *know* someone in here knows how to do this...
> I'm trying to force all traffic to an Apache server (on my laptop) to 
> use SSL.  The laptop is on a dynamic IP with no static domain, so I 
> can't force http://machine.domain.tld to https://machine.domain.tld, and 
> since the IP changes depending on where I am, I can't use that for a 
> rewrite, either.
> Do any of you Apache gurus know of a way to do this using an .htaccess 
> file or via a simple edit to httpd.conf?  I've been checking Google for 
> awhile, but everything I've come across doesn't quite do the trick.

have you tried using %{SERVER_ADDR} ?

More information about the talk mailing list