problem with ip numbers

6 posts / 0 new
Last post
#1 Wed, 02/13/2008 - 09:36
dirtybird

problem with ip numbers

After installing VM pro on mycompany.com and creating virtual zones, mycompany2.com, mycompany3.com, I am unable to access the default web pages by using the ip numbers (static). Where is this problem addressed in either VM configuration or WM configuration?

Wed, 02/13/2008 - 10:48
Joe
Joe's picture

When Apache is virtual hosting, the concept of "Default" goes away. The first virtual host listed in your httpd.conf or the alphanumerically sorted first one in /etc/apache2/sites-available on Debian/Ubuntu systems becomes the "default". Virtualmin doesn't pay any attention to this detail--it's for virtual hosting, and doesn't believe in the existence of "default" anything. IP addresses are for machines to think about, not humans. ;-)

But, you can manually change the order and Virtualmin won't mind, and will respect it. I don't think there will be any trouble on Debian/Ubuntu, either, if you just rename the one you want to be "default" to 00-blahblah, forcing it to come first in the alphanum sort.

--

Check out the forum guidelines!

Thu, 02/14/2008 - 09:02 (Reply to #2)
dirtybird

I can type in mycompany.com and mycompany1.com, etc and get a webpage that I can configure and change (or not)from within virtualmin. I should get something when I type in the ip number of that server.I see why I won't get the virtual server webpage but I should and would like to get something. Also I can't access webmin from outside the network. Where can I change this from within webmin or virtualmin.

Mon, 02/18/2008 - 09:39 (Reply to #3)
Joe
Joe's picture

<div class='quote'>I see why I won't get the virtual server webpage but I should and would like to get something.</div>

You will get something: The first VirtualHost defined in Apache that matches the qualifications of the request (so, it'll have to be the IP that is in the VirtualHost definition).

<div class='quote'>Also I can't access webmin from outside the network. Where can I change this from within webmin or virtualmin. </div>

You probably can't...Webmin, by default, is accessible on all IP addresses on the system. You've either got a firewall or router outside of the Virtualmin system that is preventing access, or you've got a local iptables firewall that has been added or modified after Virtualmin installation (we open port 10000 during installation). You need to allow port 10000 wherever it is being blocked...

--

Check out the forum guidelines!

Tue, 02/19/2008 - 07:36 (Reply to #4)
dirtybird

It was a firewall issue with port 10000, thanks.

Sat, 02/16/2008 - 11:24 (Reply to #5)
ronald
ronald's picture

If I type in the IP (where I have the domains on) I get to see the first domain I created.
Not sure why you don't get anything but if you also can't access outside the network, this might be a firewall/routering issue.

Topic locked