Here is the issue.
We are working on giving our developers a 'sandbox' where they can create new sites under a base directory structure we have setup for them. The problem is the sites change from day to day, based on their site name and its a real issue for us to have to keep modifying the virthosts-sandbox.conf file for each site name change.
Listen 123.456.789.012:80
VirtualHost dev.mysite.com>
ServerName dev.mysite.com
DocumentRoot /web/sandbox.domainname.co
m/dev.mysi
te.com/htd
ocs
ErrorLog /var/web/sandbox.domainnam
e.com/dev.
mysite.com
_error_log
CustomLog /var/web/sandbox.domainnam
e.com/dev.
mysite.com
_access_lo
g common
ScriptAlias /cgi-bin/ "/web/sandbox.domainname.c
om/dev.mys
ite.com/cg
i-bin/"
<Directory /web/sandbox.domainname.co
m/dev.mysi
te.com>
Options Indexes FollowSymLinks Multiviews +Includes
AllowOverride All
</Directory>
</VirtualHost>
Is it possible to use the Rewrite Engine (or any other module) to just direct the site instead, based on what the DNS entry is seen as? Our DNS points each site to a CNAME like: sandbox.domainname.com
Example:
- dev.mysite.com would point to /web/sandbox.domainname.co
m/dev.mysi
te.com
- dev2.mysite.com would point to /web/sandbox.domainname.co
m/dev2.mys
ite.com
And so on.
We just don't want to have to keep modifying the virthosts-sandbox.conf for each new domain name being addressed. We are talking about several hundred sites found in the virthosts-sandbox.conf file, thus the reason for the request.
Apache Version: 2.0.52 (Red Hat)
PHP Version 5.1.2
Loaded Modules: core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest util_ldap mod_auth_ldap mod_include mod_log_config mod_env mod_mime_magic mod_cern_meta mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_php5 mod_ssl
-- Michael
Start Free Trial