Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jul 24, 2010 8:49 pm 
Offline
Senior Newbie

Joined: Fri Jul 23, 2010 10:31 pm
Posts: 7
Website: http://www.cloudtech.org
I followed the tutorial in this link and got one site up(domain1.com). Now, I have two ips. However, the second site has no response. What's wrong with my settings? Are there other things I need to check? Thank you.

My vhost file: /etc/httpd/conf.d/vhost.conf

NameVirtualHost 173.230.154.x1:80
NameVirtualHost 173.230.156.x2:80

<VirtualHost 173.230.154.x1:80>
ServerAdmin xxx@gmail.com
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot /srv/www/domain1.com/public_html/
ErrorLog /srv/www/domain1.com/logs/error.log
CustomLog /srv/www/domain1.com/logs/access.log combined
</VirtualHost>

<VirtualHost 173.230.156.x2:80>
ServerAdmin xxx@gmail.com
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot /srv/www/domain2.com/public_html/
ErrorLog /srv/www/domain2.com/logs/error.log
CustomLog /srv/www/domain2.com/logs/access.log combined
</VirtualHost>


Top
   
 Post subject:
PostPosted: Sun Jul 25, 2010 1:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Have you told apache to listen on that IP?

i.e.

Listen 173.230.156.x2:80

Can you ping the ip?


Top
   
 Post subject:
PostPosted: Sun Jul 25, 2010 2:27 am 
Offline
Senior Newbie

Joined: Fri Jul 23, 2010 10:31 pm
Posts: 7
Website: http://www.cloudtech.org
obs wrote:
Have you told apache to listen on that IP?

i.e.

Listen 173.230.156.x2:80

Can you ping the ip?

Oh, I didn't add new IP to httpd.conf and I couldn't ping it too. Guess this is the problem. Anyway, I will use name-based site first.

Thank you. :wink:


Top
   
 Post subject:
PostPosted: Sun Jul 25, 2010 2:46 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you cant ping it then you either haven't added it to your network configuration properly or your firewall is blocking it.

See

http://library.linode.com/networking/co ... nterfaces/


Top
   
 Post subject:
PostPosted: Sun Jul 25, 2010 3:48 am 
Offline
Senior Newbie

Joined: Fri Jul 23, 2010 10:31 pm
Posts: 7
Website: http://www.cloudtech.org
obs wrote:
If you cant ping it then you either haven't added it to your network configuration properly or your firewall is blocking it.

See

http://library.linode.com/networking/co ... nterfaces/

oops, I didn't do this too. I thought the system automatically have this setup for me. :?


Top
   
 Post subject:
PostPosted: Sun Jul 25, 2010 11:42 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
There's a warning on your linode's network page "DHCP will only assign the primary IP address. For multiple IP addresses, you should use a static configuration."


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


Who is online

Users browsing this forum: No registered users and 3 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