Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Apache Configuration

By: a guest on Nov 20th, 2012  |  syntax: None  |  size: 0.36 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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