Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apache_virtual_hosts [2014/06/24 11:11]
127.0.0.1 external edit
apache_virtual_hosts [2015/06/01 15:39]
steve [Automatic Virtual Hosts]
Line 4: Line 4:
  
 ==== Automatic Virtual Hosts ==== ==== Automatic Virtual Hosts ====
- 
-Apache is setup so that any directory created in the /​usr/​tahiti/​www directory will automatically work as a sub-domain under dmcbeta.com. ​ So foo.dmcbeta.com would access /​usr/​tahiti/​www/​foo 
  
 The configuration for setting up the dynamic vhosts is in /​etc/​apache2/​vhosts.d/​99_magic_vhosts.conf The configuration for setting up the dynamic vhosts is in /​etc/​apache2/​vhosts.d/​99_magic_vhosts.conf
Line 11: Line 9:
 <​code>​ <​code>​
 <​VirtualHost *:80> <​VirtualHost *:80>
-        VirtualDocumentRoot "/​home/​dmedia/​public_html/​%1"​ +        VirtualDocumentRoot "/​home/​steve/​public_html/​%1"​ 
-        ServerName dev.digitaltrike.com +        ServerName dev.beandog.org 
-        ServerAlias *.digitaltrike.com +        ServerAlias *.beandog.org
-        ServerAlias *.dmcbeta.com +
-        ServerAlias dmcbeta.com +
-        ServerAdmin [email protected]+
         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/​x-javascript         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/​x-javascript
 </​VirtualHost>​ </​VirtualHost>​
Line 26: Line 21:
  
 <​code>​ <​code>​
-<​Directory "/​home/​dmedia/​public_html/​*">​+<​Directory "/​home/​steve/​public_html/​*">​
         Order allow,deny         Order allow,deny
         Allow from all         Allow from all