LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Virtual servers on internal network (httpd/named) (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-servers-on-internal-network-httpd-named-243435/)

E-Rick 10-16-2004 11:27 AM

Virtual servers on internal network (httpd/named)
 
Hi,

I run Apache on Redhat 8. Http works successfully, I can view the info.php file and also can browse successfully. Now I am trying to set up several virtual servers on my internal network. I don't need static addresses, as it's only going to be used internally. I also want to use the DNS method, since I have only one network card. I changed the httpd.conf file, restarted httpd without errors, but when I type the name of the virtual server in my browser, it's not found (eg www.test.com). I read a lot and saw that I also have to add entries to my dns records, but I have no idea how this works. Can anybody please give me a concrete example?

Many thanks!

E-Rick

acid_kewpie 10-16-2004 11:35 AM

the virtual server declarations are quite likely valid, but the problem you're presumably getting stuck with is that the address can't be resolved in the first place, which is nothing to do with apache. you need to make whatever DNS solution you are providing to the network resolve those names. you need to be able to ping the server via the vvirtual host name before you get to apache level.

secesh 10-16-2004 11:39 AM

= try putting in entries in your /etc/hosts file. that works as a dns bypass.

FYI- i have a similar setup, though with static address. I use a local server as a test before going live with changes. when i want to access a site locally, i put entries into my /etc/hosts for the sites being worked on, then comment them out before posting.

they look like this:
Code:

<private internal ip>  mylocalsite.com
#172.25.25.25            mycommentedoutsite.com


E-Rick 10-17-2004 05:05 AM

Hi,

Thanks a lot for the replies. I realize that it's a DNS problem, and thanks for the suggestion of the hosts file, I thought about that too, and it's good as a temp solution. But I read that the other computers in my network would not be able to access the web server that way, unless I also declare the virtual hosts in the host files on those respective servers. Since my purpose is the same as yours, using my virtual host server as a "template" server and other virtual hosts on my linux as "test" servers, I could use the hostfile solution, but I'd still prefer the dns solution if any possible. Also, it would learn me something on networking and maybe later it could also teach me how to set up a real web server. Many thanks if any more ideas!

E-Rick

acid_kewpie 10-17-2004 07:53 AM

that shouldn't be a problem at all, but you've not provided any information about what dns solution you are using....


All times are GMT -5. The time now is 10:35 PM.