Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #-----------------------------------------------#
  2. # Начало блока конфигурации HTTP хоста
  3. #-----------------------------------------------#
  4.  
  5. <VirtualHost *:%httpport%>
  6.  
  7.     DocumentRoot    "%hostdir%"
  8.     ServerName      "%host%"
  9.     ServerAlias     "%host%" %aliases%
  10.     ScriptAlias     /cgi-bin/ "%hostdir%/cgi-bin/"
  11.  
  12. </VirtualHost>
  13.  
  14. #-----------------------------------------------#
  15. # Конец блока конфигурации HTTP хоста
  16. #-----------------------------------------------#
  17.  
  18. #-----------------------------------------------#
  19. # Начало блока конфигурации HTTPS хоста
  20. #-----------------------------------------------#
  21.  
  22. <IfModule ssl_module>
  23. <VirtualHost *:%httpsport%>
  24.  
  25.     DocumentRoot    "%hostdir%"
  26.     ServerName      "%host%"
  27.     ServerAlias     "%host%" %aliases%
  28.     ScriptAlias     /cgi-bin/ "%hostdir%/cgi-bin/"
  29.  
  30.     SSLEngine       on
  31.     #Header always set          Strict-Transport-Security "max-age=94608000"
  32.  
  33.     #SSLCACertificateFile       ""
  34.     #SSLCertificateChainFile    ""
  35.  
  36.     SSLCertificateFile          "%sprogdir%/userdata/config/cert_files/server.crt"
  37.     SSLCertificateKeyFile       "%sprogdir%/userdata/config/cert_files/server.key"
  38.  
  39.     SetEnvIf User-Agent ".*MSIE [1-5].*" \
  40.     nokeepalive ssl-unclean-shutdown \
  41.     downgrade-1.0 force-response-1.0
  42.  
  43.     SetEnvIf User-Agent ".*MSIE [6-9].*" \
  44.     ssl-unclean-shutdown
  45.  
  46.     <FilesMatch "\.(cgi|shtml|phtml|php)$">
  47.         SSLOptions              +StdEnvVars
  48.     </FilesMatch>
  49.  
  50.     <Directory "%hostdir%/cgi-bin/">
  51.         SSLOptions              +StdEnvVars
  52.     </Directory>
  53.  
  54. </VirtualHost>
  55. </IfModule>
  56.  
  57. <Directory f:\server\OSPanel\domains\symfony777.ua\>
  58. Order allow,deny
  59. Allow from all
  60. AllowOverride all
  61. Require all granted
  62. </Directory>
  63.  
  64. #-----------------------------------------------#
  65. # Конец блока конфигурации HTTPS хоста
  66. #-----------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement