View previous topic :: View next topic |
Author |
Message |
baitas n00b
Joined: 18 Oct 2004 Posts: 67
|
Posted: Fri Jan 06, 2006 2:14 pm Post subject: [solved] apache2 mod_redirect only works with https |
|
|
Hello all
I have a big problem with mod_redirect using .htaccess
I have a server that needs https for a few dirs, so I have been playing with mod_redirect and .htaccess.
The thing is, if I redirect from https to http, it works. But not the other way around!
I have tested with a simple redirect to http://my.server/%{SERVER_PORT} with no condition (always redirects) and again, it only works using https
Is there any detail about the config I am missing? I have set option +FollowSymlinks global, and on a per dir basis in case the directory statement in httpd.conf isabled it.
The other funny thing is that I got this to work in the cgi-bin directory, everywhere else, it just ignores the redirect when using http (no logging)
I do not have access to the server right now, but later in the day I can post information as required
TIA
Tiago
Last edited by baitas on Fri Jan 06, 2006 2:39 pm; edited 1 time in total |
|
Back to top |
|
|
baitas n00b
Joined: 18 Oct 2004 Posts: 67
|
Posted: Fri Jan 06, 2006 2:38 pm Post subject: |
|
|
Well, this is what I get for inheriting a system built by someone else!
The apache server was compiled with useflag vhosts, that means I was editting in the wrong place! I should be editting the default vhost and not the root directory statement! |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20496
|
Posted: Fri Jan 06, 2006 7:00 pm Post subject: |
|
|
Moved from Other Things Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|
|
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
|
|