Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Options +FollowSymlinks
  2. Options -Indexes
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
  6. RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  7.  
  8. <VirtualHost *:80>
  9. ServerAdmin info@example.com
  10. ServerName m.example.com
  11. ServerAlias m.example.com
  12.  
  13. DirectoryIndex default.php index.php
  14. DocumentRoot /var/www/example/public_html/m/
  15. LogLevel warn
  16. ErrorLog /var/www/example/log/error.log
  17. CustomLog /var/www/example/log/access.log combined
  18. </VirtualHost>
  19.  
  20. <VirtualHost *:80>
  21. # Admin email, Server Name (domain name), and any aliases
  22. ServerAdmin info@example.com
  23. ServerName example.com
  24.  
  25. # Index file and Document Root (where the public files are located)
  26. DirectoryIndex default.php index.php
  27. DocumentRoot /var/www/example/public_html
  28. # Log file locations
  29. LogLevel warn
  30. ErrorLog /var/www/example/log/error.log
  31. CustomLog /var/www/example/log/access.log combined
  32. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement