SHARE
TWEET

Apache Configuration

a guest Nov 20th, 2012 27 Never
  1. DocumentRoot /var/www/<subdirectory>
  2. ServerName www.example.com
  3. ServerAlias example.com
  4. ErrorLog /var/log/<subdirectory>
  5. TransferLog /var/log/<subdirectory>
  6. LogLevel warn
  7. RewriteEngine on
  8. RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  9. RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
  10. RewriteCond %{HTTP_HOST} ^example.com$
  11. RewriteRule ^robots.txt robots-development.txt
RAW Paste Data
Top