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 Hosting - XP - Apache 2.2.2
Author
miller_kurt_e



Joined: 04 Aug 2006
Posts: 1
Location: SF, CA

PostPosted: Fri 04 Aug '06 19:16    Post subject: Virtual Hosting - XP - Apache 2.2.2 Reply with quote

Greetings,

I am developing multiple sites. The scenario I'm trying to create is one where I can access each site internally (localhost) for development AND simultaneously allow external clients to preview the production site (separate directory) from my dynamic ip resolver (www.xxx.dynalias.com).

Thusfar, I am able to successfully map to the local development sites using virtual hosting and my hosts file. The problem I am struggling with is how to map the www.xxx.dynalias.com to more than one site. Is this even possible? As in www.xxx.dynalias.com/site1 or www.xxx.dynalias.com/site2 etc.


Here is my current config:

#
# Virtual Hosts
#

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "d:/xampp/xampp/htdocs"
<Directory "d:/xampp/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName cvw.local
DocumentRoot "d:/webdev"
<Directory "d:/webdev">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName sfgh.local
DocumentRoot "d:/SFGHWeb"
<Directory "d:/SFGHWeb">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName www.xxx.dynalias.com
DocumentRoot "c:/web"
<Directory "c:/web">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

========================
My hosts file:

127.0.0.1 www.xxx.dynalias.com
127.0.0.1 xampp.local
127.0.0.1 cvw.local
127.0.0.1 sfgh.local
127.0.0.1 localhost

Thanks in advance,
Kurt Miller
Back to top
Xing
Moderator


Joined: 26 Oct 2005
Posts: 49

PostPosted: Sat 05 Aug '06 19:51    Post subject: Reply with quote

Puzzling post. First thought is that it is not possible what you want. But maybe you can try to use mod_vhost_alias to map the first part of the domainname to the Document root.


X
Back to top


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