Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Can't get VirtualHost to work |
|
Author |
|
jb61264
Joined: 12 Dec 2006 Posts: 4
|
Posted: Tue 12 Dec '06 15:43 Post subject: Can't get VirtualHost to work |
|
|
I just have Apache installed on my PC at work...I'm able to have an index.html page come up for those people on my team on our internal network to see just fine...however, they have to type in the IP address of my machine to get it. I can also have them type my computers "name" in their web browser and my index page will appear just fine too.
However, I want to have my index page so that they can just type in "http://team48" and have it show up
I've entered the following in VirtualHost with no success:
NameVirtualHost WW.XX.YY.ZZ
<VirtualHost WW.XX.YY.ZZ>
ServerName team48.companyname.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/team48"
</VirtualHost>
My "Listen" statement is:
Listen WW.XX.YY.ZZ:80
Am I overlooking something in the config file in order to get what I need?
Thanks for any guidance
Jeff |
|
Back to top |
|
pips
Joined: 03 May 2006 Posts: 65 Location: Manchester, UK
|
Posted: Tue 12 Dec '06 22:37 Post subject: |
|
|
if this is purely for an internal website and you are running an internal DNS server, then add an entry for http://team48 pointing to the IP address of your server.
If you are not running an internal DNS server, then you will need to edit the HOSTS file on each Windows PC and add the entry in there.
Cheers, Phil |
|
Back to top |
|
jb61264
Joined: 12 Dec 2006 Posts: 4
|
Posted: Wed 13 Dec '06 23:56 Post subject: |
|
|
pips wrote: | if this is purely for an internal website and you are running an internal DNS server, then add an entry for http://team48 pointing to the IP address of your server.
If you are not running an internal DNS server, then you will need to edit the HOSTS file on each Windows PC and add the entry in there.
Cheers, Phil |
Thanks pips...I've requested my IT team to add my "team48" to the DNS server entry. |
|
Back to top |
|
|
|
|
|
|