Advertisement
Guest User

Untitled

a guest
May 18th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1. ================== Dev Site default ==================
  2. <VirtualHost *:8200>
  3. ServerAdmin kevin@streetwise.co
  4. ServerName innoindex.dev-streetwise.co
  5. DocumentRoot /var/www/inno_index_public
  6.  
  7. <Directory />
  8. Options FollowSymLinks
  9. AllowOverride All
  10. </Directory>
  11. <Directory /var/www/inno_index_public>
  12. Options Indexes FollowSymLinks MultiViews
  13. AllowOverride All
  14. Order allow,deny
  15. allow from all
  16. </Directory>
  17.  
  18. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  19. <Directory "/usr/lib/cgi-bin">
  20. AllowOverride None
  21. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  22. Order allow,deny
  23. Allow from all
  24. </Directory>
  25.  
  26. ErrorLog ${APACHE_LOG_DIR}/error.log
  27.  
  28. # Possible values include: debug, info, notice, warn, error, crit,
  29. # alert, emerg.
  30. LogLevel warn
  31.  
  32. CustomLog ${APACHE_LOG_DIR}/access.log combined
  33.  
  34. Alias /doc/ "/usr/share/doc/"
  35. <Directory "/usr/share/doc/">
  36. Options Indexes MultiViews FollowSymLinks
  37. AllowOverride None
  38. Order deny,allow
  39. Deny from all
  40. Allow from 127.0.0.0/255.0.0.0 ::1/128
  41. </Directory>
  42.  
  43. </VirtualHost>
  44.  
  45. ================== Dev Site default-ssl ==================
  46. <VirtualHost *:443>
  47. ServerAdmin kevin@streetwise-media.com
  48. ServerName innoindex.dev-streetwise.co
  49. DocumentRoot /var/www/inno_index_public
  50. <Directory />
  51. Options FollowSymLinks
  52. AllowOverride All
  53. </Directory>
  54. <Directory /var/www/inno_index_public>
  55. Options Indexes FollowSymLinks MultiViews
  56. AllowOverride All
  57. Order allow,deny
  58. allow from all
  59. </Directory>
  60. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  61. <Directory "/usr/lib/cgi-bin">
  62. AllowOverride None
  63. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  64. Order allow,deny
  65. Allow from all
  66. </Directory>
  67. ErrorLog ${APACHE_LOG_DIR}/error.log
  68. LogLevel warn
  69. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  70. Alias /doc/ "/usr/share/doc/"
  71. <Directory "/usr/share/doc/">
  72. Options Indexes MultiViews FollowSymLinks
  73. AllowOverride None
  74. Order deny,allow
  75. Deny from all
  76. Allow from 127.0.0.0/255.0.0.0 ::1/128
  77. </Directory>
  78. SSLEngine on
  79. SSLCertificateFile /etc/apache2/ssl/streetwise.co.crt
  80. SSLCertificateKeyFile /etc/apache2/ssl/server.key
  81. #SSLCertificateChainFile /etc/apache2/ssl/gd_bundle.crt
  82. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  83. SSLOptions +StdEnvVars
  84. </FilesMatch>
  85. <Directory /usr/lib/cgi-bin>
  86. SSLOptions +StdEnvVars
  87. </Directory>
  88. BrowserMatch "MSIE [2-6]" \
  89. nokeepalive ssl-unclean-shutdown \
  90. downgrade-1.0 force-response-1.0
  91. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  92. </VirtualHost>
  93.  
  94.  
  95. ================== nginx =============================
  96.  
  97. server {
  98. listen *:80;
  99. server_name innoindex.dev-streetwise.co;
  100.  
  101. proxy_set_header Host $host;
  102. proxy_set_header X-Real-IP $remote_addr;
  103. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  104.  
  105. proxy_buffer_size 128k;
  106. proxy_buffers 4 256k;
  107. proxy_busy_buffers_size 256k;
  108. proxy_pass_header Set-Cookie;
  109.  
  110. location / {
  111. proxy_pass http://apache-webserver;
  112. root /var/www/inno_index_public;
  113. }
  114.  
  115. location ~* ^/assets/(.*) {
  116. root /var/www/inno_index_public;
  117. expires 1y;
  118. }
  119.  
  120. location ~* ^/fonts/(.*) {
  121. root /var/www/inno_index_public;
  122. expires 1y;
  123. }
  124.  
  125. location ~* ^/(.*)\.ico {
  126. root /var/www/inno_index_public;
  127. expires 1y;
  128. }
  129. location ~* ^/apple\-touch\-icon(.*)\.png {
  130. root /var/www/inno_index_public;
  131. expires 1y;
  132. }
  133. }
  134.  
  135.  
  136. ================== Live Site default ==================
  137. <VirtualHost *:8200>
  138. ServerAdmin kevin@streetwise.co
  139. ServerName innoindex.streetwise.co
  140. DocumentRoot /var/www/inno_index_public
  141. <Directory />
  142. Options FollowSymLinks
  143. AllowOverride All
  144. </Directory>
  145. <Directory /var/www/inno_index_public/>
  146. Options Indexes FollowSymLinks MultiViews
  147. AllowOverride All
  148. Order allow,deny
  149. allow from all
  150. </Directory>
  151.  
  152. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  153. <Directory "/usr/lib/cgi-bin">
  154. AllowOverride None
  155. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  156. Order allow,deny
  157. Allow from all
  158. </Directory>
  159.  
  160. #ErrorLog ${APACHE_LOG_DIR}/error.log
  161.  
  162. # Possible values include: debug, info, notice, warn, error, crit,
  163. # alert, emerg.
  164. LogLevel warn
  165.  
  166. CustomLog ${APACHE_LOG_DIR}/access.log combined
  167.  
  168. Alias /doc/ "/usr/share/doc/"
  169. <Directory "/usr/share/doc/">
  170. Options Indexes MultiViews FollowSymLinks
  171. AllowOverride None
  172. Order deny,allow
  173. Deny from all
  174. Allow from 127.0.0.0/255.0.0.0 ::1/128
  175. </Directory>
  176.  
  177. </VirtualHost>
  178.  
  179. ================== Live Site default-ssl ==================
  180. <VirtualHost *:443>
  181. ServerAdmin kevin@streetwise-media.com
  182. ServerName innoindex.streetwise.co
  183. DocumentRoot /var/www/inno_index_public
  184. <Directory />
  185. Options FollowSymLinks
  186. AllowOverride None
  187. </Directory>
  188. <Directory /var/www/inno_index_public>
  189. Options Indexes FollowSymLinks MultiViews
  190. AllowOverride All
  191. Order allow,deny
  192. allow from all
  193. </Directory>
  194. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  195. <Directory "/usr/lib/cgi-bin">
  196. AllowOverride None
  197. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  198. Order allow,deny
  199. Allow from all
  200. </Directory>
  201. ErrorLog ${APACHE_LOG_DIR}/error.log
  202. LogLevel warn
  203. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  204. Alias /doc/ "/usr/share/doc/"
  205. <Directory "/usr/share/doc/">
  206. Options Indexes MultiViews FollowSymLinks
  207. AllowOverride None
  208. Order deny,allow
  209. Deny from all
  210. Allow from 127.0.0.0/255.0.0.0 ::1/128
  211. </Directory>
  212. SSLEngine on
  213. SSLCertificateFile /etc/apache2/ssl/24576a66d92ed399.crt
  214. SSLCertificateKeyFile /etc/apache2/ssl/streetwise.key
  215. SSLCertificateChainFile /etc/apache2/ssl/gd_bundle-g2-g1.crt
  216. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  217. SSLOptions +StdEnvVars
  218. </FilesMatch>
  219. <Directory /usr/lib/cgi-bin>
  220. SSLOptions +StdEnvVars
  221. </Directory>
  222. BrowserMatch "MSIE [2-6]" \
  223. nokeepalive ssl-unclean-shutdown \
  224. downgrade-1.0 force-response-1.0
  225. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  226. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement