Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ================================================================================================================
- A P A C H E + MOD_PHP 8.1 (https://rtfm.wiki/web/ispsystem/ispmgr6_repo)
- ================================================================================================================
- <VirtualHost 127.0.0.1:8083>
- ServerName testperson.empis-dev.ru
- DocumentRoot /var/www/testperson/data/www/testperson.empis-dev.ru
- ServerAdmin webmaster@testperson.empis-dev.ru
- AddDefaultCharset off
- AssignUserID testperson testperson
- CustomLog /var/www/httpd-logs/testperson.empis-dev.ru.access.log combined
- ErrorLog /var/www/httpd-logs/testperson.empis-dev.ru.error.log
- <FilesMatch "\.ph(p[3-5]?|tml)$">
- SetHandler application/x-httpd-php
- </FilesMatch>
- <IfModule php5_module>
- Include /etc/httpd-isp-php81/users-php/testperson.conf
- Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
- php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
- php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
- php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
- php_admin_value open_basedir "none"
- </IfModule>
- <IfModule php7_module>
- Include /etc/httpd-isp-php81/users-php/testperson.conf
- Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
- php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
- php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
- php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
- php_admin_value open_basedir "none"
- </IfModule>
- <IfModule php_module>
- Include /etc/httpd-isp-php81/users-php/testperson.conf
- Include /etc/httpd-isp-php81/vhosts-php/testperson.empis-dev.ru.conf
- php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@testperson.empis-dev.ru"
- php_admin_value upload_tmp_dir "/var/www/testperson/data/mod-tmp"
- php_admin_value session.save_path "/var/www/testperson/data/mod-tmp"
- php_admin_value open_basedir "none"
- </IfModule>
- SetEnvIf X-Forwarded-Proto https HTTPS=on
- ServerAlias empis-dev.nbki.ru
- DirectoryIndex index.php index.html
- <FilesMatch "\.phps$">
- SetHandler application/x-httpd-php-source
- </FilesMatch>
- </VirtualHost>
- <Directory /var/www/testperson/data/www/testperson.empis-dev.ru>
- AllowOverride All
- Options -Indexes +FollowSymLinks -ExecCGI
- <IfModule php5_module>
- php_admin_flag engine on
- </IfModule>
- <IfModule php7_module>
- php_admin_flag engine on
- </IfModule>
- <IfModule php_module>
- php_admin_flag engine on
- </IfModule>
- </Directory>
- # Remove directory slash at End of URL if folder ("no site routing" mode)
- AliasMatch "/subject-cabinet/api/esia/done$" "/var/www/testperson/data/www/testperson.empis-dev.ru/subject-cabinet/api/esia/done/index.php"
- <Directory /var/www/testperson/data/www/testperson.empis-dev.ru/webstat>
- DirectoryIndex index.html
- AddDefaultCharset utf-8
- </Directory>
- ================================================================================================================
- N G I N X
- ================================================================================================================
- server {
- server_name testperson.empis-dev.ru empis-dev.nbki.ru;
- charset off;
- index index.php index.html;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/*.conf;
- access_log /var/www/httpd-logs/testperson.empis-dev.ru.access.log;
- error_log /var/www/httpd-logs/testperson.empis-dev.ru.error.log notice;
- set $root_path /var/www/testperson/data/www/testperson.empis-dev.ru;
- root $root_path;
- gzip on;
- gzip_comp_level 5;
- gzip_disable "msie6";
- 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;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
- expires 24h;
- try_files $uri $uri/ @fallback;
- }
- location / {
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8083;
- proxy_redirect http://127.0.0.1:8083 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- access_log off;
- include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/dynamic/*.conf;
- }
- listen 31.135.9.59:80;
- }
- server {
- server_name testperson.empis-dev.ru empis-dev.nbki.ru;
- ssl_certificate "/var/www/httpd-cert/testperson/testperson.empis-dev.ru_le2.crtca";
- ssl_certificate_key "/var/www/httpd-cert/testperson/testperson.empis-dev.ru_le2.key";
- ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
- ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
- charset off;
- index index.php index.html;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/*.conf;
- access_log /var/www/httpd-logs/testperson.empis-dev.ru.access.log;
- error_log /var/www/httpd-logs/testperson.empis-dev.ru.error.log info;
- set $root_path /var/www/testperson/data/www/testperson.empis-dev.ru;
- root $root_path;
- gzip on;
- gzip_comp_level 5;
- gzip_disable "msie6";
- 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;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
- expires 24h;
- try_files $uri $uri/ @fallback;
- }
- location / {
- index index.php index.html;
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8083;
- proxy_redirect http://127.0.0.1:8083 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- access_log off;
- include /etc/nginx/vhosts-resources/testperson.empis-dev.ru/dynamic/*.conf;
- }
- listen 31.135.9.59:443 ssl http2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement