logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Hosts
Author
googlexx



Joined: 23 Feb 2011
Posts: 1

PostPosted: Wed 23 Feb '11 3:06    Post subject: Virtual Hosts Reply with quote

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

PostPosted: Wed 23 Feb '11 10:53    Post subject: Reply with quote

Doesn't the browser resolve the DNS? Did you modify your hosts (windows) file?
Back to top


Reply to topic   Topic: Virtual Hosts View previous topic :: View next topic
Post new topic   Forum Index -> Apache