Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. <VirtualHost *:80>
  2. DocumentRoot /var/www/hivetracking-front/checkout/hive-tracking/public/
  3. ServerName hivetracking.com
  4. ServerAlias www.hivetracking.com
  5. SetEnv _ENV production
  6.  
  7. <Directory />
  8. DirectoryIndex index.phtml
  9. RewriteEngine On
  10. LogLevel alert rewrite:trace6
  11. Options Indexes FollowSymLinks
  12. AllowOverride All
  13. </Directory>
  14.  
  15.  
  16. ErrorLog /var/www/hivetracking-front/error.log
  17.  
  18.  
  19. # Possible values include: debug, info, notice, warn, error, crit,
  20. # alert, emerg.
  21. LogLevel warn
  22. CustomLog /var/www/hivetracking-front/access.log combined
  23. </VirtualHost>
  24.  
  25. <VirtualHost *:80>
  26. DocumentRoot /var/www/hivetracking-back/checkout/hive-tracking-api/public
  27. ServerName api.hivetracking.com
  28. SetEnv _ENV production
  29.  
  30. <Directory />
  31. DirectoryIndex index.php
  32. RewriteEngine On
  33. LogLevel alert rewrite:trace6
  34. Options Indexes FollowSymLinks
  35. AllowOverride All
  36. </Directory>
  37.  
  38.  
  39. ErrorLog /var/www/hivetracking-back/error.log
  40.  
  41. # Possible values include: debug, info, notice, warn, error, crit,
  42. # alert, emerg.
  43. LogLevel warn
  44. CustomLog /var/www/hivetracking-back/access.log combined
  45. </VirtualHost>
  46.  
  47. RewriteEngine on
  48. ServerSignature On
  49. DirectoryIndex index.php
  50. Options Indexes FollowSymLinks
  51.  
  52.  
  53. <FilesMatch ".(ico|pdf|flv)$">
  54. Header set Cache-Control "max-age=29030400, public" #1 YEAR
  55. </FilesMatch>
  56. <FilesMatch ".(xml|txt|css|jpg|jpeg|png|gif|swf)$">
  57. Header set Cache-Control "max-age=172800, proxy-revalidate" #1 WEEK
  58. </FilesMatch>
  59. <FilesMatch ".(html|htm|php|js)$">
  60. Header set Cache-Control "max-age=60, private, proxy-revalidate" #2 DAYS
  61. </FilesMatch>
  62.  
  63.  
  64. # system/session
  65. RewriteRule ^([-A-Za-z0-9]+)/([-A-Za-z]+)$ index.php?__module=$1&__action=$2 [L,QSA]
  66.  
  67. # teams/something/123456
  68. RewriteRule ([-A-Za-z0-9]+)/([-A-Za-z0-9]+)/([0-9a-fA-F]{24}+)$ index.php?__module=$1&__action=$2&id=$3 [L,QSA]
  69.  
  70. # teams
  71. RewriteRule ^([-A-Za-z0-9]+)$ index.php?__module=$1&__action=index [L,QSA]
  72.  
  73. # teams/123456
  74. RewriteRule ([-A-Za-z0-9]+)/([0-9a-fA-F]{24}+)$ index.php?__module=$1&__action=index&id=$2 [L,QSA]
  75.  
  76.  
  77. RewriteCond %{REQUEST_FILENAME} !-f
  78. RewriteCond %{REQUEST_FILENAME} !-d
  79.  
  80. <FilesMatch ".(ico|pdf|flv)$">
  81. Header set Cache-Control "max-age=29030400, public" #1 YEAR
  82. </FilesMatch>
  83. <FilesMatch ".(xml|txt|css|jpg|jpeg|png|gif|swf)$">
  84. Header set Cache-Control "max-age=172800, proxy-revalidate" #1 WEEK
  85. </FilesMatch>
  86. <FilesMatch ".(html|htm|php|js)$">
  87. Header set Cache-Control "max-age=60, private, proxy-revalidate" #2 DAYS
  88. </FilesMatch>
  89.  
  90. <Directory /var/www/hivetracking-front/checkout/hive-tracking/public>
  91. DirectoryIndex index.php
  92. RewriteEngine On
  93. LogLevel alert rewrite:trace6
  94. Options Indexes FollowSymLinks
  95. AllowOverride All
  96. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement