Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #<VirtualHost 206.123.107.181:80>
- <VirtualHost *:80>
- ServerAdmin [email protected]
- ServerSignature email
- ServerName old.fosterclub.com
- DirectoryIndex index.php index.html index.htm index.shtml
- DocumentRoot /var/www/html/fosterclub/docroot
- HostNameLookups off
- RewriteEngine on
- # Force SSL
- RewriteCond %{HTTP_HOST} ^old\.fosterclub\.com$ [NC]
- RewriteRule ^(.*)$ https://old.fosterclub.com$1 [L,R=301]
- RewriteCond %{HTTPS} !=on
- RewriteRule ^(.*)$ https://old.fosterclub.com$1 [L,R=301]
- # Force our domain name
- RewriteCond %{HTTP_HOST} !^old\.fosterclub\.com [NC]
- RewriteCond %{HTTP_HOST} !^$
- RewriteRule ^/(.*) https://old.fosterclub.com/$1 [L,R]
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/html/dc/docroot>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Require all granted
- # For friendly URLs
- RewriteEngine on
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- </Directory>
- <IfModule mod_fastcgi.c>
- AddType application/x-httpd-fastphp5 .php
- Action application/x-httpd-fastphp5 /php5-fcgi
- Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi-dc-www
- FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi-dc-www -socket /var/run/php5-fpm.sock -pass-header Authorization -idle-timeout 180
- </IfModule>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment