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: Virtual Hosts |
|
Author |
|
googlexx
Joined: 23 Feb 2011 Posts: 1
|
Posted: Wed 23 Feb '11 3:06 Post subject: Virtual Hosts |
|
|
I'm trying to setup a subdomain on the same ip but it's not working. I can access localhost:81 but not map.localhost:81 It looks right to me. Any ideas?
This is what I have:
Code: |
NameVirtualHost *:81
<VirtualHost *:81>
ServerAdmin postmaster@dummy-host.localhost
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
</VirtualHost>
<VirtualHost *:81>
ServerAdmin postmaster@map.localhost
DocumentRoot "C:/xampp/htdocs/map"
ServerName map.localhost
ServerAlias www.map.localhost
ErrorLog "logs/map.localhost-error.log"
CustomLog "logs/map.localhost-access.log" combined
</VirtualHost>
|
|
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Wed 23 Feb '11 10:53 Post subject: |
|
|
Doesn't the browser resolve the DNS? Did you modify your hosts (windows) file? |
|
Back to top |
|
|
|
|
|
|