Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Listen 80
  2. Listen 8090
  3.  
  4. NameVirtualHost *:80
  5. NameVirtualHost *:8090
  6.  
  7.  
  8. <VirtualHost *:8090>
  9. ServerAdmin admin@a.com
  10. DocumentRoot /var/www/y/public_html
  11. ServerName a.com
  12. ErrorLog /var/www/y/error_log
  13. CustomLog /var/www/y/access_log common
  14.  
  15. <directory /var/www/y/public_html>
  16.  
  17. RewriteEngine On
  18. RewriteBase /
  19. RewriteRule ^index.php$ - [L]
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteRule . /index.php [L]
  23.  
  24. </directory>
  25.  
  26.  
  27. </VirtualHost>
  28.  
  29.  
  30.  
  31. <VirtualHost *:80>
  32. ServerAdmin admin@a.com
  33. DocumentRoot /var/www/x/web
  34. ServerName a.com
  35. ErrorLog /var/www/x/logs/error_log
  36. CustomLog /var/www/x/logs/access_log common
  37.  
  38. <directory /var/www/x/web>
  39.  
  40. Options -MultiViews
  41. RewriteEngine On
  42. RewriteCond %{REQUEST_FILENAME} !-f
  43. RewriteRule ^ index.php [QSA,L]
  44.  
  45. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/xml text/javascript application/javascript application/x-javascript
  46.  
  47. </directory>
  48.  
  49. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement