Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- DocumentRoot /var/www/hivetracking-front/checkout/hive-tracking/public/
- ServerName hivetracking.com
- ServerAlias www.hivetracking.com
- SetEnv _ENV production
- <Directory />
- DirectoryIndex index.phtml
- RewriteEngine On
- LogLevel alert rewrite:trace6
- Options Indexes FollowSymLinks
- AllowOverride All
- </Directory>
- ErrorLog /var/www/hivetracking-front/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/www/hivetracking-front/access.log combined
- </VirtualHost>
- <VirtualHost *:80>
- DocumentRoot /var/www/hivetracking-back/checkout/hive-tracking-api/public
- ServerName api.hivetracking.com
- SetEnv _ENV production
- <Directory />
- DirectoryIndex index.php
- RewriteEngine On
- LogLevel alert rewrite:trace6
- Options Indexes FollowSymLinks
- AllowOverride All
- </Directory>
- ErrorLog /var/www/hivetracking-back/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/www/hivetracking-back/access.log combined
- </VirtualHost>
- RewriteEngine on
- ServerSignature On
- DirectoryIndex index.php
- Options Indexes FollowSymLinks
- <FilesMatch ".(ico|pdf|flv)$">
- Header set Cache-Control "max-age=29030400, public" #1 YEAR
- </FilesMatch>
- <FilesMatch ".(xml|txt|css|jpg|jpeg|png|gif|swf)$">
- Header set Cache-Control "max-age=172800, proxy-revalidate" #1 WEEK
- </FilesMatch>
- <FilesMatch ".(html|htm|php|js)$">
- Header set Cache-Control "max-age=60, private, proxy-revalidate" #2 DAYS
- </FilesMatch>
- # system/session
- RewriteRule ^([-A-Za-z0-9]+)/([-A-Za-z]+)$ index.php?__module=$1&__action=$2 [L,QSA]
- # teams/something/123456
- RewriteRule ([-A-Za-z0-9]+)/([-A-Za-z0-9]+)/([0-9a-fA-F]{24}+)$ index.php?__module=$1&__action=$2&id=$3 [L,QSA]
- # teams
- RewriteRule ^([-A-Za-z0-9]+)$ index.php?__module=$1&__action=index [L,QSA]
- # teams/123456
- RewriteRule ([-A-Za-z0-9]+)/([0-9a-fA-F]{24}+)$ index.php?__module=$1&__action=index&id=$2 [L,QSA]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- <FilesMatch ".(ico|pdf|flv)$">
- Header set Cache-Control "max-age=29030400, public" #1 YEAR
- </FilesMatch>
- <FilesMatch ".(xml|txt|css|jpg|jpeg|png|gif|swf)$">
- Header set Cache-Control "max-age=172800, proxy-revalidate" #1 WEEK
- </FilesMatch>
- <FilesMatch ".(html|htm|php|js)$">
- Header set Cache-Control "max-age=60, private, proxy-revalidate" #2 DAYS
- </FilesMatch>
- <Directory /var/www/hivetracking-front/checkout/hive-tracking/public>
- DirectoryIndex index.php
- RewriteEngine On
- LogLevel alert rewrite:trace6
- Options Indexes FollowSymLinks
- AllowOverride All
- </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement