View Single Post
Old 03-02-2009, 09:55 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,513
apache virtual hosts and SEO, need input

How would creating apache virtual hosts on the fly effect if any SEO

basically i can add directories:

/home/sites/domain1.com
/home/sites/domain2.com

etc

and it will work automatically www.domain1.com domain1.com, without adding an apache entry for each domain.


Code:
VirtualHost 206.4.112.13>
  UseCanonicalName Off
  ServerAlias www.*
  DocumentRoot /home/sites/
  VirtualDocumentRoot /home/sites/%2+

  <Directory "">
    Options ALL -Indexes
    AllowOverride ALL
  </Directory>

</VirtualHost>

<VirtualHost 206.4.112.13>
  UseCanonicalName Off
  ServerAlias *
  DocumentRoot /home/sites/
  VirtualDocumentRoot /home/sites/%0

  <Directory "">
    Options ALL -Indexes
    AllowOverride ALL
  </Directory>

</VirtualHost>
Question is will it have any effect vs each entry for each domain.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Free Templates / Gallery Scraper
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote