[users@httpd] Virtual hosting - 2.2.2 - XP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm fairly new to this so I hope my explanation is
clear enough.

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,
Kurt Miller


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux