Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 3 VHOSTS and DYNDNS.ORG ??

Status
Not open for further replies.

turnbui

Programmer
Jul 23, 2005
60
GB
Hello eveyone,
FInally I have my 3 VHOSTS working and my DHCP and DNS.
Now hopefully with your help the coup-de-grace
Forwarding the outside world to the correct VHOST.

Currently I only seem to be able to direct the userland internet browsers to the 1 VHOST that is defined first in my VHOSTS.conf if I put an entry in the Linux boxes /etc/hosts file to match the first VHOSTS host.

I'd rather not use the /etc/hosts file as I have DNS + DHCP working.

Can anyone steer me to the correct documentation to accomplish my goal. I googled and checked to doccos but have failed to find anything on this.

Should it all be automatic - the reason for having VHOSTS to begin with - ie. just point the VHOSTS definition to a separate /var/ for each user?

Or is there a better way to do it?

Thanks for any help.
Ian T
 
You should have a line that looks like this:

NameVirtualHost *:80

Each vhost container should look like this:

<VirtualHost *:80>

At minimum, each vhost needs at least a DocumentRoot and a ServerName defined.

Restart apache after any changes.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top