Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] apache2 mod_redirect only works with https
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
baitas
n00b
n00b


Joined: 18 Oct 2004
Posts: 67

PostPosted: Fri Jan 06, 2006 2:14 pm    Post subject: [solved] apache2 mod_redirect only works with https Reply with quote

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
View user's profile Send private message
baitas
n00b
n00b


Joined: 18 Oct 2004
Posts: 67

PostPosted: Fri Jan 06, 2006 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20496

PostPosted: Fri Jan 06, 2006 7:00 pm    Post subject: Reply with quote

Moved from Other Things Gentoo
_________________
Quis separabit? Quo animo?
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