Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Mar 28, 2005 3:08 pm 
Offline
Senior Member

Joined: Tue Mar 09, 2004 3:52 am
Posts: 106
Hi there.

I have Apache 1.x running with a number of VirtualHosts. Recently, the need has arisen for me to offer secure communications on one of my VirtualHosts (on the whole website once the user has authenticated, not just a /members/ area)

So, in my Apache config, I now have two virtualhost sections for the same website, bith identical except that one has the SSL related directives in it, and the Virtualhost directive looks like

Code:
<VirtualHost *>
ServerName mydomain.com
...
</VirtualHost>


For the first one, and:

Code:
<VirtualHost *:443>
ServerName mydomain.com
...
</VirtualHost>


for the second one, with all the custom error pages, etc identical in both. This seems cumbersome, but I can't find an answer anwhere as to whether I can combin the two into one single directive that can handle both port 80 and 443 traffic.

Am I doing this correctly? It seems like alot of duplication in each respective section with the loggin, custom error pages, aliases, all existing in both locations.

Thanks for any input!


Top
   
 Post subject:
PostPosted: Tue Mar 29, 2005 3:16 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
I think what you have done is how you're meant to do it. One file tree accessed with two different behaviours, depending on the connection port, requires two virtual hosts.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Tue Mar 29, 2005 12:09 pm 
Offline
Senior Member

Joined: Tue Mar 09, 2004 3:52 am
Posts: 106
pclissold wrote:
I think what you have done is how you're meant to do it. One file tree accessed with two different behaviours, depending on the connection port, requires two virtual hosts.


Great, thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group