Advertisement
Guest User

Apache Configuration

a guest
Nov 20th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement