View previous topic :: View next topic |
Author |
Message |
bodfa n00b
Joined: 26 Oct 2002 Posts: 2
|
Posted: Sat Oct 26, 2002 3:12 am Post subject: Help with firewall, apache, virtual hosts and such.... |
|
|
I have a webserver. It works fine from the outside, and When I browse to localhost I can use it. BUT...When I type in the actual host name... nothing. So I put the resolution in my Hosts file. Now it works...kinda, but none of my virtual hosts work.... I think it is because hosts will just substitue a name for an ip, and then lose the header info that I need to use Vhosts (Right???)
SO... Is there anyway that I can work this.
Also It sure would be annoying to have to go to all the clients and change there hosts files.... So maybe bind???? Help. |
|
Back to top |
|
|
Messiah Tux's lil' helper
Joined: 30 Apr 2002 Posts: 139
|
Posted: Sat Oct 26, 2002 12:30 pm Post subject: |
|
|
First of all, you should make sure that all hosts can find your server. That is by ip, and by name, otherwise apache can't help you. If they can not, fix that first. You could use any name server, so bind can help you, as can djbdns, and all other name servers.
Then, if you do want to use apache virtual hosts, I suggest you read some docs on virtual hosts. There are plenty on the apache website.
You should put this in your apache.conf of Vhosts.conf file (above your Virtual Hosts):
NameVirtualHost 111.222.33.44
substitute 111.222.33.44 with the ip of your server, and all names should point to that ip. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|