Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-16-2004, 11:27 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Red Hat Linux 8
Posts: 17
Rep:
|
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
|
|
|
|
10-16-2004, 11:35 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
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.
|
|
|
|
10-16-2004, 11:39 AM
|
#3
|
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
= 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
|
|
|
|
10-17-2004, 05:05 AM
|
#4
|
|
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Red Hat Linux 8
Posts: 17
Original Poster
Rep:
|
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
|
|
|
|
10-17-2004, 07:53 AM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
that shouldn't be a problem at all, but you've not provided any information about what dns solution you are using....
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|