Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Second- in FC2 there is a dns server config tool, however in fc3 i cant seem to find it? was this replaced by something or is there a better way to set up dns on your linux box?
These are good as long as the system is up. On RedHat you can create different files with the IP addresses down in
/etc/sysconfig/network-scripts
you will already have ifcfg-eth0 so you can just create an ifcfg-eth0:0 file as well.
Your otherchoice is creating name based virtual hosts.
It is an absolutely lousy tool in my opinion, but redhat's apacheconf tool may help you out. Better yet, download webmin from webmin.com and there is a nicer gui based tool for configuring apache.
These are good as long as the system is up. On RedHat you can create different files with the IP addresses down in
/etc/sysconfig/network-scripts
you will already have ifcfg-eth0 so you can just create an ifcfg-eth0:0 file as well.
Im going to try the ip based virtual host but i have a few questions.
1. how do i get etho to have those other ip addresses? I have a static ip address and im behind a firewall/router. so the ip address that my computer gets is 192.168.0.6, this is the ip that stands outside my dmz port. Also incase you need to know im running FC3.
2. When creating the virtual host with apache cant i do that by editing the .conf file for apache?
The "virtual IP addresses are made by issuing either
ifconfig eth0:0 192.168.1.99
or whatever IP address you want.
The hard coded way would be to create a file just like the
/etc/sysconfig/network-scripts file
but call it ifcfg-eth0:0
Instead of the word BOOTPROto=dhcp
it should read BOOTPROTO="static"
IPADDR=192.168.0.99
NETMASK=255.255.255.0
If you change your actual IP using setup or netconfig it will write the ifcfg-eth0 file the way you need it. just use that format then change your IP back to dhcp again
Ok i used the Network configuration tool in Gnome to do this.
i created
etho0: 192.168.0.6 (this was my defualt one, i didnt creat this one)
etho0:1 192.168.0.100 subnet 255.255.255.0 (this one is new, however it is used by static ip address)
etho0:2 192.168.0.101 subnet 255.255.255.0 (This one is new also)
Now is this what i should do (sorry if im far off but im pretty new to linux)
If you're using private IPs and sitting behind a router doing port forwarding, I don't know how well this is going to work, because your router will have to forward HTTP requests for site1.com to 192.168.0.100 and for site2.com to 192.168.0.101. Enterprise class networking gear can do this easily, but the little $50 thing you buy down at Best Buy might not be able to. In that case, you might want to go with name based (rather than IP based) virtual hosting. In that case, all requests get sent by the same IP address and Apache decides based on the name of the site in the request which WWW page to show.
i'd really advise against the ip based virtual host... it takes you down to a level of networking that you simply don't need to be concerned about. instead in apache, jsut enable name based virtualhosts in your httpd.conf (or apache.conf or whatever your distro uses):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.