Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Sep 10, 2008 3:29 pm 
Offline
Senior Newbie

Joined: Sat Aug 30, 2008 10:24 pm
Posts: 7
Hello i have set up the machine with ubuntu , and apache2

i have two domain tuttecene.com and hardcoreultras.com

I have setted up virtual hosts in apache2 conf:



Code:
<VirtualHost 72.14.178.196:80>
ServerName hardcoreultras.com
ServerAlias www.hardcoreultras.com
DocumentRoot /home/hardcoreultras/public_html
ErrorLog /home/hardcoreultras/logs/error_log
CustomLog /home/hardcoreultras/logs/access_log combined
ScriptAlias /cgi-bin/ /home/hardcoreultras/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/hardcoreultras/public_html>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/hardcoreultras/cgi-bin>
allow from all
</Directory>
</VirtualHost>




And for tuttecene :


Code:

<VirtualHost 72.14.178.196:80>
ServerName tuttecene.com
ServerAlias www.tuttecene.com
DocumentRoot /home/tuttecene/public_html
ErrorLog /home/tuttecene/logs/error_log
CustomLog /home/tuttecene/logs/access_log combined
ScriptAlias /cgi-bin/ /home/tuttecene/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/tuttecene/public_html>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/tuttecene/cgi-bin>
allow from all
</Directory>
</VirtualHost>



The default is:


Code:

ServerName li40-196.members.linode.com:80



I i ping www.hardcoreultras.com


Code:
root@ubuntu:/etc/apache2/sites-enabled# ping www.hardcoreultras.com
PING www.hardcoreultras.com (72.14.178.196) 56(84) bytes of data.
64 bytes from www.hardcoreultras.com (72.14.178.196): icmp_seq=1 ttl=64 time=0.055 ms
64 bytes from www.hardcoreultras.com (72.14.178.196): icmp_seq=2 ttl=64 time=0.054 ms



Tuttecene .com ping


Code:
root@ubuntu:/etc/apache2/sites-enabled# ping www.tuttecene.com
PING www.tuttecene.com (72.14.178.196) 56(84) bytes of data.
[b]64 bytes from www.hardcoreultras.com (72.14.178.196)[/b]: icmp_seq=1 ttl=64 time=0.035 ms
64 bytes from www.hardcoreultras.com (72.14.178.196): icmp_seq=2 ttl=64 time=0.061 ms




It reply with hardcorueltras.com website !!! and if i go to www.tuttecene.com i automaticaly redirected to hardcoreultras.com! :(

the DNS setting is this:

Hardcoreultras.com zone file :


Code:
$TTL 86400
@   IN   SOA   ns1.linode.com. dibbellas.gmail.com. (
               2008091062
               7200
               7200
               1209600
               86400
            )
@      NS   ns1.linode.com.
@      NS   ns2.linode.com.
@      NS   ns3.linode.com.
@      NS   ns4.linode.com.
@         MX   10   mail.hardcoreultras.com.
@         A   72.14.178.196
www         A   72.14.178.196
mail         A   72.14.178.196




Tuttecene.com Zone file


Code:
TTL 86400
@   IN   SOA   ns1.linode.com. dibbellas.gmail.com. (
               2008091062
               7200
               7200
               1209600
               86400
            )
@      NS   ns1.linode.com.
@      NS   ns2.linode.com.
@      NS   ns3.linode.com.
@      NS   ns4.linode.com.
@         MX   10   mail.tuttecene.com.
www         A   72.14.178.196
mail         A   72.14.178.196
@         A   72.14.178.196
www         A   72.14.178.196




Where i wrong??


Top
   
 Post subject:
PostPosted: Wed Sep 10, 2008 5:42 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
are you sure you have both sites properly enabled in apache?

And do you have an entry somewhere in your config file that says
Code:
NameVirtualHost 72.14.178.196:80
to tell apache that your using virtualhosts?

Ignore the pinging issue thats not related. Thats due to when you do a ping, it does a reverse look up on the IP address as well. So i assume in the linode network manager you set the reservse IP entry to be the first domain.

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Wed Sep 10, 2008 8:19 pm 
Offline
Senior Newbie

Joined: Sat Aug 30, 2008 10:24 pm
Posts: 7
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
NameVirtualHost 72.14.178.196:80


yes! is at the end of the apache conf file !


Top
   
 Post subject:
PostPosted: Wed Sep 10, 2008 8:35 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
Im not sure if youve sorted this out or not..
But when i browse to http://www.tuttecene.com/ i get a 403 forbidden error,

and when i browse to
http://www.hardcoreultras.com/
i get a different site..

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Thu Sep 11, 2008 7:31 am 
Offline
Senior Newbie

Joined: Sat Aug 30, 2008 10:24 pm
Posts: 7
Solved , apache2 have problems with sueXec , now i have isntalled and configured and it work perfectly


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


Who is online

Users browsing this forum: No registered users and 1 guest


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