gorfy

Untitled

Jan 26th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #this is /etc/apache2/sites-enabled/gorfy.net.conf
  2. <VirtualHost *:80>
  3. ServerName gorfy.net
  4. ServerAlias www.gorfy.net
  5. ServerAdmin [email protected]
  6.  
  7. DocumentRoot /var/www/html/gorfy.net/www/
  8. <Directory /var/www/html/gorfy.net/www/>
  9. php_admin_value open_basedir /var/www/html/gorfy.net/:/tmp/
  10. Options -Indexes +FollowSymLinks -MultiViews
  11. AllowOverride none
  12. Order allow,deny
  13. allow from all
  14. <IfModule mod_rewrite.c>
  15. RewriteEngine On
  16. RewriteBase /
  17. RewriteRule ^index\.php$ - [L]
  18. RewriteCond %{REQUEST_FILENAME} !-f
  19. RewriteCond %{REQUEST_FILENAME} !-d
  20. RewriteRule . /index.php [L]
  21. </IfModule>
  22. </Directory>
  23.  
  24. ErrorLog /var/log/apache2/gorfy.net-error.log
  25. LogLevel warn
  26. CustomLog /var/log/apache2/gorfy.net-access.log combined
  27. ServerSignature off
  28.  
  29.  
  30.  
  31. Redirect permanent / https://www.gorfy.net/
  32.  
  33. RewriteCond %{SERVER_NAME} =gorfy.net [OR]
  34. RewriteCond %{SERVER_NAME} =www.gorfy.net
  35. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  36. </VirtualHost>
  37.  
  38. #<VirtualHost *:80>
  39. # ServerName zm.gorfy.net
  40. # ServerAlias zm.gorfy.net
  41. #
  42. # ProxyPreserveHost on
  43. # ProxyPass / http://192.168.1.86/zm/
  44. # ProxyPassReverse / http://192.168.1.86/zm/
  45. #</VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment