Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 18, 2008 11:26 am 
Offline
Senior Newbie

Joined: Sun May 18, 2008 10:50 am
Posts: 8
ICQ: 202342120
Hi, all. I 'm quite new in linux. Please pardon me if I don,t use the right terminology. I ,m using Ubuntu 7.04 and I have webmin and virtualmin installed as control panels. I recently configured my two domains to linode dns and they point fine to my linode. However when try to host the domains in my linode, both domains show the same web contents.

I'm really confused. What do I do?


Top
   
 Post subject:
PostPosted: Sun May 18, 2008 12:17 pm 
Offline

Joined: Mon Nov 05, 2007 4:47 am
Posts: 1
You'll need to check that your webmin/virtualmin is setting up the VirtualHost(s) inside apache correctly. Debian based distributions should have the apache configuration within /etc/apache (or /etc/apache2)

For an example of what it's supposed to be:

http://httpd.apache.org/docs/1.3/vhosts/examples.html


Top
   
PostPosted: Mon May 19, 2008 12:46 am 
Offline
Senior Newbie

Joined: Sun May 18, 2008 10:50 am
Posts: 8
ICQ: 202342120
Thanks. But I can't find the configuration file : /etc/apache2 for the configuration settings. I can create virtual hosts automatically with virtualmin for two domains : www.mydomain1.com, www.mydomain2.com . Both domains resolve to my server IP. How can I access the apache configuration file on ubuntu 7.04?


Top
   
 Post subject:
PostPosted: Mon May 19, 2008 6:57 am 
Offline
Senior Newbie

Joined: Sun May 18, 2008 10:50 am
Posts: 8
ICQ: 202342120
Still trying to resolve the problem. When I restarted apache this is what I got:
[Mon May 19 06:50:27 2008] [error] VirtualHost xxx.xxx.xxx.xxx:0 -- mixing * ports and non-* ports with a NameVir
tualHost address is not supported, proceeding with undefined results
[Mon May 19 06:50:27 2008] [error] VirtualHost xxx.xxx.xxx.xxx:0 -- mixing * ports and non-* ports with a NameVir
tualHost address is not supported, proceeding with undefined results
[Mon May 19 06:50:27 2008] [warn] NameVirtualHost xxx.xxx.xxx.xxx:80 has no VirtualHosts
[Mon May 19 06:50:27 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
[Mon May 19 06:50:27 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
[Mon May 19 06:50:37 2008] [error] VirtualHost xxx.xxx.xxx.xxx:0 -- mixing * ports and non-* ports with a NameVir
tualHost address is not supported, proceeding with undefined results
[Mon May 19 06:50:37 2008] [error] VirtualHost xxx.xxx.xxx.xxx:0 -- mixing * ports and non-* ports with a NameVir
tualHost address is not supported, proceeding with undefined results
[Mon May 19 06:50:37 2008] [warn] NameVirtualHost xxx.xxx.xxx.xxx:80 has no VirtualHosts
[Mon May 19 06:50:37 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
[Mon May 19 06:50:37 2008] [warn] NameVirtualHost *:0 has no VirtualHosts



xxx.xxx.xxx.xxx is my IP.

Thanks.


Top
   
 Post subject: Try Google!
PostPosted: Mon May 19, 2008 8:20 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
One minute of Googling your error message turned up this: http://wiki.apache.org/httpd/VirtualHostsMixingPorts

Also, I don't know where the xxx.xxx.xxx.xxx:0 and *:0 are coming from--Apache shouldn't be listening on port 0 normally.


Top
   
PostPosted: Tue May 20, 2008 3:34 am 
Offline
Senior Newbie

Joined: Sun May 18, 2008 10:50 am
Posts: 8
ICQ: 202342120
Thanks. I have fixed the port mixing problem. But all my domains still showing the same web contents. I only upload web pages in one of my domain which I have configured to linode dns but all other domains show the same web pages even when I did not uplaod to the virtual hosts.


Any further help will be appreciated.


Thanks.


Top
   
 Post subject:
PostPosted: Sun May 25, 2008 8:13 am 
Offline
Junior Member

Joined: Tue May 20, 2008 3:00 am
Posts: 37
I've had the same problem, everything non-configured by virtualmin showed up the first domain I did configure, but I've added this to my /etc/httpd/conf/httpd.conf file at the section where all the Vhosts were :

Code:
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
</VirtualHost>


Now it shows up as empty (since /var/www/html is empty too), could also post a message there or whatever.

I'm on CentOS btw, so the config might differ.


Top
   
PostPosted: Mon May 26, 2008 1:09 am 
Offline
Senior Newbie

Joined: Sun May 18, 2008 10:50 am
Posts: 8
ICQ: 202342120
Thanks. I will try this out and see how it goes.


Top
   
 Post subject:
PostPosted: Mon Jun 02, 2008 5:17 am 
Offline
Senior Newbie
User avatar

Joined: Wed Jun 27, 2007 3:25 am
Posts: 7
Website: http://www.virtualmin.com
This problem is discussed in the Virtualmin documentation:

http://www.virtualmin.com/documentation ... e_shows_up

It's basically exactly what the previously linked Apache documentation talked about.

In short you've got ports and addresses configured incorrectly in your Apache configuration--Virtualmin doesn't touch the NameVirtualHost directives (though you can set them in Webmin's Apache module), and so if you've configured it incorrectly all of your virtual hosts will be broken.

And to answer the earlier suggestion that Webmin or Virtualmin may not know about Debian-based distros locations, it definitely does. Debian and Ubuntu are both well-supported (and Jamie and I use Debian on some of our own systems).


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


Who is online

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