Web Hosting Talk







View Full Version : help with ip numbers


matt2kjones
07-10-2002, 10:56 AM
OK, i am confused about this.

I have one ethernet card which is connected to an internet source.

I have webmin installed and am using that to setup apache.

When i goto servers in webmin, then click apache, at the bottom are the servers running, eg, default server, virtual server, etc.

well, i have given the server a hostname of srv1.thedigitaldream.co.uk

i have then setup a virtual server, and set it up so that is listens on any address, using post 80, and i have set the server name to srv1

What i am wondering is, do you set the address to any, or do you give it your external ip, or setup an internal ip on your ethernet card, and then give it an internal ip?

Trust me, i have been to librarys around here, and there are just no books on linux what so ever, and i cannot afford to buy books at the moment as im still in school, and have no money

barrywien
07-10-2002, 12:09 PM
As far as i know, it takes the IP assigned to your internet connection and the last digit changes for different devices. I have a home network setup and each computer has a unique IP address as the last number goes up for each computer running on the network. It auto assigns in my case. But i am not sure with your case. Ask someone in PCWorld (although you will be lucky to get a technical answer from them:o )

mwatkins
07-11-2002, 08:27 PM
A book on Linux isn't what you need, and besides, no need to spend a dime - just search the net.

At this time you'd be well off looking through:

http://httpd.apache.org/docs/vhosts/index.html -or-
http://httpd.apache.org/docs-2.0/vhosts/index.html

Hint: For name based virtual hosting you need only the single IP address.

Rather than using Webmin, you would probably be farther along if you just opened up httpd.conf and read the comments at the end of the file (Virtual Host section) - its all quite self explanatory.