Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Apache2:only access allowed to ocalhost when ssl
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
massctrl
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 156

PostPosted: Fri Jun 16, 2006 3:01 pm    Post subject: [solved] Apache2:only access allowed to ocalhost when ssl Reply with quote

Hi all,

I'm having apache2 running with vhosts enabled.
When people go http://www.mydomainname.com they arrive at the correct place.

When people type :

http://ip.of.my.server they arrive in /var/www/localhost/htdocs/
https://ip.of.my.server they arrive in /var/www/localhost/htdocs/

I want people to receive an access denied when they use http://ip.of.my.server
BUT https://ip.of.my.server should still be allowed.

http://www.mydomainname.com should stay the same like it is right now,...

quid?

Thanks !


Last edited by massctrl on Fri Jan 05, 2007 8:57 am; edited 1 time in total
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Fri Jun 16, 2006 3:08 pm    Post subject: Reply with quote

It's hitting the first host in the config file.

When you configure apache vhosts via host headers, when someone types in the IP or something that gets directed to your host that apache cant resolve, it will send the request to the first host in the config file (I'm 99% sure I am correct).
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