amonoxia

old config

Feb 1st, 2018
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. #<VirtualHost 206.123.107.181:80>
  2. <VirtualHost *:80>
  3. ServerAdmin [email protected]
  4. ServerSignature email
  5. ServerName old.fosterclub.com
  6. DirectoryIndex index.php index.html index.htm index.shtml
  7. DocumentRoot /var/www/html/fosterclub/docroot
  8. HostNameLookups off
  9. RewriteEngine on
  10.  
  11. # Force SSL
  12. RewriteCond %{HTTP_HOST} ^old\.fosterclub\.com$ [NC]
  13. RewriteRule ^(.*)$ https://old.fosterclub.com$1 [L,R=301]
  14. RewriteCond %{HTTPS} !=on
  15. RewriteRule ^(.*)$ https://old.fosterclub.com$1 [L,R=301]
  16.  
  17. # Force our domain name
  18. RewriteCond %{HTTP_HOST} !^old\.fosterclub\.com [NC]
  19. RewriteCond %{HTTP_HOST} !^$
  20. RewriteRule ^/(.*) https://old.fosterclub.com/$1 [L,R]
  21.  
  22. <Directory />
  23. Options FollowSymLinks
  24. AllowOverride None
  25. </Directory>
  26.  
  27. <Directory /var/www/html/dc/docroot>
  28. Options Indexes FollowSymLinks MultiViews
  29. AllowOverride All
  30. Require all granted
  31.  
  32. # For friendly URLs
  33. RewriteEngine on
  34. RewriteBase /
  35. RewriteCond %{REQUEST_FILENAME} !-f
  36. RewriteCond %{REQUEST_FILENAME} !-d
  37. RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  38. </Directory>
  39.  
  40. <IfModule mod_fastcgi.c>
  41. AddType application/x-httpd-fastphp5 .php
  42. Action application/x-httpd-fastphp5 /php5-fcgi
  43. Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi-dc-www
  44. FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi-dc-www -socket /var/run/php5-fpm.sock -pass-header Authorization -idle-timeout 180
  45. </IfModule>
  46.  
  47. ErrorLog ${APACHE_LOG_DIR}/error.log
  48.  
  49. # Possible values include: debug, info, notice, warn, error, crit,
  50. # alert, emerg.
  51. LogLevel warn
  52.  
  53. CustomLog ${APACHE_LOG_DIR}/access.log combined
  54. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment