-
-
Save maruf89/363b6edd111834ad78bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 173.234.60.107:9000> | |
SuexecUserGroup marius marius | |
DocumentRoot /home/marius/mvmdesign.org/html | |
ServerName mvmdesign.org | |
ServerAlias www.mvmdesign.org ftp.mvmdesign.org mail.mvmdesign.org | |
ServerAdmin webmaster@mvmdesign.org | |
# subdomain logic | |
RewriteEngine On | |
RewriteOptions inherit | |
RewriteCond %{HTTP_HOST} !^www\.mvmdesign\.org [NC] | |
RewriteCond %{HTTP_HOST} !^mvmdesign\.org [NC] | |
RewriteCond %{HTTP_HOST} ^([A-Z0-9a-z-.]+)\.mvmdesign\.org [NC] | |
RewriteCond %{DOCUMENT_ROOT}/%1 -d | |
RewriteRule ^(.+) %{HTTP_HOST}/$1 [C] | |
RewriteRule ^([0-9A-Za-z-.]+)\.mvmdesign\.org/?(.*)$ %{DOCUMENT_ROOT}/$1/$2 [L] | |
RewriteCond %{HTTP_HOST} ^www\.([A-Z0-9a-z-.]+)\.mvmdesign\.org [NC] | |
RewriteCond %{DOCUMENT_ROOT}/%1 -d | |
RewriteRule ^(.+) %{HTTP_HOST}/$1 [C] | |
RewriteRule ^www\.([0-9A-Za-z-.]+)\.mvmdesign\.org/?(.*)$ %{DOCUMENT_ROOT}/$1/$2 [L] | |
# end subdomain logic | |
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> | |
Header set Cache-Control "max-age=290304000, public" | |
</FilesMatch> | |
# 2 DAYS | |
<FilesMatch "\.(xml|txt)$"> | |
Header set Cache-Control "max-age=172800, public, must-revalidate" | |
</FilesMatch> | |
# 2 HOURS | |
<FilesMatch "\.(html|htm)$"> | |
Header set Cache-Control "max-age=7200, must-revalidate" | |
</FilesMatch> | |
ErrorLog /home/marius/var/mvmdesign.org/logs/error.log | |
CustomLog /home/marius/var/mvmdesign.org/logs/transfer.log combined | |
# php: default don't edit between this and the "end php" comment below | |
<IfModule mod_suphp.c> | |
suPHP_Engine On | |
suPHP_UserGroup marius marius | |
AddHandler x-httpd-php .php | |
suPHP_AddHandler x-httpd-php .php | |
suPHP_ConfigPath /home/marius/etc | |
</IfModule> | |
<IfModule !mod_suphp.c> | |
<IfModule mod_php5.c> | |
php_admin_flag engine On | |
</IfModule> | |
<IfModule mod_php4.c> | |
php_admin_flag engine On | |
</IfModule> | |
</IfModule> | |
# end php | |
# cgi: 0 don't edit between this and the "end cgi" comment below | |
<Directory /home/marius/mvmdesign.org/html> | |
AllowOverride All | |
</Directory> | |
<Location /> | |
Options -ExecCGI | |
</Location> | |
# end cgi | |
<IfModule mod_interworx_settings.c> | |
# InterWorx adds this dummy module section to store settings | |
# There is no mod_interworx_settings module | |
# DO NOT DELETE | |
last_update 2013-09-17 02:41:12 | |
iworx_controlled_ips 173.234.60.106:80 | |
</IfModule> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment