Advertisement
MuadDiib

Untitled

Dec 27th, 2024
3,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 7.97 KB | Software | 0 0
  1.  
  2. ================================================================================================================
  3.                        A  P  A  C  H  E + MOD_PHP 8.1 (https://rtfm.wiki/web/ispsystem/ispmgr6_repo)
  4. ================================================================================================================
  5. <VirtualHost 127.0.0.1:8083>
  6.         ServerName testperson.empis-dev.ru
  7.         DocumentRoot /var/www/testperson/data/www/testperson.empis-dev.ru
  8.         ServerAdmin webmaster@testperson.empis-dev.ru
  9.         AddDefaultCharset off
  10.         AssignUserID testperson testperson
  11.         CustomLog /var/www/httpd-logs/testperson.empis-dev.ru.access.log combined
  12.         ErrorLog /var/www/httpd-logs/testperson.empis-dev.ru.error.log
  13.         <FilesMatch "\.ph(p[3-5]?|tml)$">
  14.                 SetHandler application/x-httpd-php
  15.         </FilesMatch>
  16.         <IfModule php5_module>
  17.                 Include /etc/httpd-isp-php81/users-php/testperson.conf
  18.                 Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
  19.                 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
  20.                 php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
  21.                 php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
  22.                 php_admin_value open_basedir "none"
  23.         </IfModule>
  24.         <IfModule php7_module>
  25.                 Include /etc/httpd-isp-php81/users-php/testperson.conf
  26.                 Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
  27.                 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
  28.                 php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
  29.                 php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
  30.                 php_admin_value open_basedir "none"
  31.         </IfModule>
  32.         <IfModule php_module>
  33.                 Include /etc/httpd-isp-php81/users-php/testperson.conf
  34.                 Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
  35.                 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
  36.                 php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
  37.                 php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
  38.                 php_admin_value open_basedir "none"
  39.         </IfModule>
  40.         SetEnvIf X-Forwarded-Proto https HTTPS=on
  41.         ServerAlias empis-dev.nbki.ru
  42.         DirectoryIndex index.php index.html
  43.         <FilesMatch "\.phps$">
  44.                 SetHandler application/x-httpd-php-source
  45.         </FilesMatch>
  46. </VirtualHost>
  47. <Directory /var/www/testperson/data/www/testperson.empis-dev.ru>
  48.         AllowOverride All
  49.         Options -Indexes +FollowSymLinks -ExecCGI
  50.         <IfModule php5_module>
  51.                 php_admin_flag engine on
  52.         </IfModule>
  53.         <IfModule php7_module>
  54.                 php_admin_flag engine on
  55.         </IfModule>
  56.         <IfModule php_module>
  57.                 php_admin_flag engine on
  58.         </IfModule>
  59. </Directory>
  60.  
  61. # Remove directory slash at End of URL if folder ("no site routing" mode)
  62. AliasMatch "/subject-cabinet/api/esia/done$" "/var/www/testperson/data/www/testperson.empis-dev.ru/subject-cabinet/api/esia/done/index.php"
  63.  
  64. <Directory /var/www/testperson/data/www/testperson.empis-dev.ru/webstat>
  65.         DirectoryIndex index.html
  66.         AddDefaultCharset utf-8
  67. </Directory>
  68. ================================================================================================================
  69.                                                 N  G  I  N  X
  70. ================================================================================================================
  71. server {
  72.         server_name testperson.empis-dev.ru empis-dev.nbki.ru;
  73.         charset off;
  74.         index index.php index.html;
  75.         disable_symlinks if_not_owner from=$root_path;
  76.         include /etc/nginx/vhosts-includes/*.conf;
  77.         include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/*.conf;
  78.         access_log /var/www/httpd-logs/testperson.empis-dev.ru.access.log;
  79.         error_log /var/www/httpd-logs/testperson.empis-dev.ru.error.log notice;
  80.         set $root_path /var/www/testperson/data/www/testperson.empis-dev.ru;
  81.         root $root_path;
  82.         gzip on;
  83.         gzip_comp_level 5;
  84.         gzip_disable "msie6";
  85.         gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
  86.         location / {
  87.                 location ~ [^/]\.ph(p\d*|tml)$ {
  88.                         try_files /does_not_exists @fallback;
  89.                 }
  90.                 location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
  91.                         expires 24h;
  92.                         try_files $uri $uri/ @fallback;
  93.                 }
  94.                 location / {
  95.                         try_files /does_not_exists @fallback;
  96.                 }
  97.         }
  98.         location @fallback {
  99.                 proxy_pass http://127.0.0.1:8083;
  100.                 proxy_redirect http://127.0.0.1:8083 /;
  101.                 proxy_set_header Host $host;
  102.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  103.                 proxy_set_header X-Forwarded-Proto $scheme;
  104.                 proxy_set_header X-Forwarded-Port $server_port;
  105.                 access_log off;
  106.                 include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/dynamic/*.conf;
  107.         }
  108.         listen 31.135.9.59:80;
  109. }
  110. server {
  111.         server_name testperson.empis-dev.ru empis-dev.nbki.ru;
  112.         ssl_certificate "/var/www/httpd-cert/testperson/testperson.empis-dev.ru_le2.crtca";
  113.         ssl_certificate_key "/var/www/httpd-cert/testperson/testperson.empis-dev.ru_le2.key";
  114.         ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  115.         ssl_prefer_server_ciphers on;
  116.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
  117.         ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  118.         charset off;
  119.         index index.php index.html;
  120.         disable_symlinks if_not_owner from=$root_path;
  121.         include /etc/nginx/vhosts-includes/*.conf;
  122.         include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/*.conf;
  123.         access_log /var/www/httpd-logs/testperson.empis-dev.ru.access.log;
  124.         error_log /var/www/httpd-logs/testperson.empis-dev.ru.error.log info;
  125.         set $root_path /var/www/testperson/data/www/testperson.empis-dev.ru;
  126.         root $root_path;
  127.         gzip on;
  128.         gzip_comp_level 5;
  129.         gzip_disable "msie6";
  130.         gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
  131.         location / {
  132.                 location ~ [^/]\.ph(p\d*|tml)$ {
  133.                         try_files /does_not_exists @fallback;
  134.                 }
  135.                 location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
  136.                         expires 24h;
  137.                         try_files $uri $uri/ @fallback;
  138.                 }
  139.                 location / {
  140.                         index index.php index.html;
  141.                         try_files /does_not_exists @fallback;
  142.                 }
  143.         }
  144.         location @fallback {
  145.                 proxy_pass http://127.0.0.1:8083;
  146.                 proxy_redirect http://127.0.0.1:8083 /;
  147.                 proxy_set_header Host $host;
  148.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  149.                 proxy_set_header X-Forwarded-Proto $scheme;
  150.                 proxy_set_header X-Forwarded-Port $server_port;
  151.                 access_log off;
  152.                 include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/dynamic/*.conf;
  153.         }
  154.         listen 31.135.9.59:443 ssl http2;
  155. }
  156.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement