Forum Moderators: phranque

Message Too Old, No Replies

Question on Multi-domain on single Apache Server

         

seanbun

7:52 am on Sep 8, 2005 (gmt 0)

10+ Year Member



Hi,

i implemented more than 1 domain on my apache web serve. Each domain got 1 IP address. I used <virtualhost>s to distinguish those domains as below :

<VirtualHost 220.123.123.1>
ServerName : 202.123.123.1
DocumentRoot "c:/public_html/domain1"
ServerAdmin : ....
</VirtualHost>

<VirtualHost 220.123.123.2>
ServerName : 202.123.123.2
DocumentRoot "c:/public_html/domain2"
ServerAdmin : ....
</VirtualHost>

My question is Do i need to state the ServerName out of the <virtualhost> tag? When i tried not stating the ServerName outside the <virtualhost> tag, the SSL server does not work. Since i have more than one domain, semantically, which ServerName should i state?

rattlehead ie

1:15 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



I'm not sure if this will help or not. You're obviously using multiple ip addresses (rather than names to identify your sites)

Try using this:

ServerName www.domain2.com (this is for your second domain)

ServerName www.domain1.com (this is for your 1st domain)

[edited by: jdMorgan at 1:23 am (utc) on Sep. 9, 2005]
[edit reason] Plain engish for an international forum, please. [/edit]