LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to assign diffrent ip/hostnames to diffrent services (https://www.linuxquestions.org/questions/linux-general-1/how-to-assign-diffrent-ip-hostnames-to-diffrent-services-413997/)

koppaspider 02-10-2006 07:59 PM

How to assign diffrent ip/hostnames to diffrent services
 
How do you assign a diffrent ip address or hostname to diffrent services on the same machine. I mean like I want Webmin to run on one ip/and or hostname, and I want usermin to run on a diffrent ip/and or hostname. I would also like to run VNC on a diffrent ip than the one assigned by dhcp. You see we've got a terminal server, connected to a novell server. And for security reasons of my own, I would like to assign diffrent hostnames to the services if possible. Even IPs work. I just need them to be diffrent. Is there anyway to do this?

sipsipi 02-10-2006 09:03 PM

For instance, and i don't know how much this will help, in your httpd.conf file, you can setup:

<VirtualHost IP.IP.IP.IP:80>
Directives here
</VirtualHost>

For each web service. Apache does this, but I am not sure about VNC binding to a particular IP. What you will also want to do, is setup virtual IP's on one NIC. (Depending on your Distro) is
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0:1
and so on for each IP address you are going to use


All times are GMT -5. The time now is 07:48 AM.