Advertisement
Guest User

Untitled

a guest
Sep 12th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 KB | None | 0 0
  1. <VirtualHost 10.100.67.19:80>
  2.  
  3. ServerName project1.example.com.pl
  4.  
  5. ServerAdmin [email protected]
  6.  
  7. DocumentRoot /var/www/project1/web
  8. <Directory />
  9. Options FollowSymLinks
  10. AllowOverride All
  11. </Directory>
  12. <Directory /var/www/>
  13. Options Indexes FollowSymLinks MultiViews
  14. AllowOverride All
  15. Order allow,deny
  16. allow from all
  17. </Directory>
  18.  
  19. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  20. <Directory "/usr/lib/cgi-bin">
  21. AllowOverride None
  22. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  23. Order allow,deny
  24. Allow from all
  25. </Directory>
  26.  
  27. ErrorLog ${APACHE_LOG_DIR}/project1-error.log
  28.  
  29. # Possible values include: debug, info, notice, warn, error, crit,
  30. # alert, emerg.
  31. LogLevel warn
  32.  
  33. CustomLog ${APACHE_LOG_DIR}/project1-access.log combined
  34. </VirtualHost>
  35.  
  36. <VirtualHost 10.100.67.19:443>
  37.  
  38. ServerName project1.example.com.pl
  39.  
  40. ServerAdmin [email protected]
  41.  
  42. DocumentRoot /var/www/project1/web
  43.  
  44. SSLEngine on
  45. SSLOptions +StrictRequire
  46.  
  47. <Directory />
  48. SSLRequireSSL
  49. Options FollowSymLinks
  50. AllowOverride All
  51. </Directory>
  52. <Directory /var/www/>
  53. Options Indexes FollowSymLinks MultiViews
  54. AllowOverride All
  55. Order allow,deny
  56. allow from all
  57. </Directory>
  58.  
  59. <Directory /var/www/project1/web>
  60. Options Indexes FollowSymLinks MultiViews
  61. AllowOverride All
  62. Order allow,deny
  63. allow from all
  64. </Directory>
  65.  
  66. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  67. <Directory "/usr/lib/cgi-bin">
  68. AllowOverride None
  69. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  70. Order allow,deny
  71. Allow from all
  72. </Directory>
  73.  
  74. ErrorLog ${APACHE_LOG_DIR}/project1-ssl-error.log
  75.  
  76. # Possible values include: debug, info, notice, warn, error, crit,
  77. # alert, emerg.
  78. LogLevel warn
  79.  
  80. CustomLog ${APACHE_LOG_DIR}/project1-ssl-access.log combined
  81.  
  82. SSLProtocol all -SSLv2 -SSLv3 -TLSv1
  83. SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
  84. SSLHonorCipherOrder on
  85.  
  86. SSLCertificateFile "/etc/ssl/certs/example_com_pl.crt"
  87. SSLCertificateKeyFile "/etc/ssl/private/example_com_pl.key"
  88. SSLCACertificateFile "/etc/ssl/certs/DigiCertCA.crt"
  89.  
  90. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  91.  
  92.  
  93. SSLVerifyClient none
  94. SSLProxyEngine off
  95.  
  96. <IfModule mime.c>
  97. AddType application/x-x509-ca-cert .crt
  98. AddType application/x-pkcs7-crl .crl
  99. </IfModule>
  100.  
  101. </VirtualHost>
  102.  
  103. <VirtualHost 10.100.67.19:80>
  104.  
  105. ServerName project2.example.com.pl
  106.  
  107. ServerAdmin [email protected]
  108.  
  109. DocumentRoot /var/www/project2/web
  110. <Directory />
  111. Options FollowSymLinks
  112. AllowOverride All
  113. </Directory>
  114. <Directory /var/www/>
  115. Options Indexes FollowSymLinks MultiViews
  116. AllowOverride All
  117. Order allow,deny
  118. allow from all
  119. </Directory>
  120.  
  121. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  122. <Directory "/usr/lib/cgi-bin">
  123. AllowOverride None
  124. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  125. Order allow,deny
  126. Allow from all
  127. </Directory>
  128.  
  129. ErrorLog ${APACHE_LOG_DIR}/error.log
  130.  
  131. # Possible values include: debug, info, notice, warn, error, crit,
  132. # alert, emerg.
  133. LogLevel warn
  134.  
  135. CustomLog ${APACHE_LOG_DIR}/project2-nossl-access.log combined
  136. </VirtualHost>
  137.  
  138. <VirtualHost 10.100.67.19:443>
  139.  
  140. ServerName project2.example.com.pl
  141.  
  142. ServerAdmin [email protected]
  143.  
  144. DocumentRoot /var/www/project2/web
  145.  
  146. SSLEngine on
  147. SSLOptions +StrictRequire
  148.  
  149. <Directory />
  150. SSLRequireSSL
  151. Options FollowSymLinks
  152. AllowOverride All
  153. </Directory>
  154. <Directory /var/www/>
  155. Options Indexes FollowSymLinks MultiViews
  156. AllowOverride All
  157. Order allow,deny
  158. allow from all
  159. </Directory>
  160.  
  161. <Directory /var/www/project2/web>
  162. Options Indexes FollowSymLinks MultiViews
  163. AllowOverride All
  164. Order allow,deny
  165. allow from all
  166. </Directory>
  167.  
  168. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  169. <Directory "/usr/lib/cgi-bin">
  170. AllowOverride None
  171. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  172. Order allow,deny
  173. Allow from all
  174. </Directory>
  175.  
  176. ErrorLog ${APACHE_LOG_DIR}/project2-error.log
  177.  
  178. # Possible values include: debug, info, notice, warn, error, crit,
  179. # alert, emerg.
  180. LogLevel warn
  181.  
  182. CustomLog ${APACHE_LOG_DIR}/project2-access.log combined
  183.  
  184. SSLProtocol all -SSLv2 -SSLv3 -TLSv1
  185. SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
  186. SSLHonorCipherOrder on
  187.  
  188. SSLCertificateFile "/etc/ssl/certs/example_com_pl.crt"
  189. SSLCertificateKeyFile "/etc/ssl/private/example_com_pl.key"
  190. SSLCACertificateFile "/etc/ssl/certs/DigiCertCA.crt"
  191.  
  192. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  193.  
  194.  
  195. SSLVerifyClient none
  196. SSLProxyEngine off
  197.  
  198. <IfModule mime.c>
  199. AddType application/x-x509-ca-cert .crt
  200. AddType application/x-pkcs7-crl .crl
  201. </IfModule>
  202.  
  203. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement