Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name replicano.ru.com www.replicano.ru.com;
- 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/replicano.ru.com/*.conf;
- access_log /var/www/httpd-logs/replicano.ru.com.access.log;
- error_log /var/www/httpd-logs/replicano.ru.com.error.log notice;
- ssi on;
- set $root_path /var/www/replicano_ru_com/data/www/replicano.ru.com;
- root $root_path;
- return 301 https://$host:443$request_uri;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- try_files $uri $uri/ /index.php?$args;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@replicano.ru.com";
- fastcgi_pass unix:/var/www/php-fpm/replicano_ru_com.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- fastcgi_buffer_size 32k;
- fastcgi_buffers 4 32k;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen 185.43.220.151:80;
- }
- server {
- server_name replicano.ru.com www.replicano.ru.com;
- ssl_certificate "/var/www/httpd-cert/replicano_ru_com/replicano.ru.com_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/replicano_ru_com/replicano.ru.com_le1.key";
- ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- add_header Strict-Transport-Security "max-age=31536000;";
- 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/replicano.ru.com/*.conf;
- access_log /var/www/httpd-logs/replicano.ru.com.access.log;
- error_log /var/www/httpd-logs/replicano.ru.com.error.log notice;
- ssi on;
- set $root_path /var/www/replicano_ru_com/data/www/replicano.ru.com;
- root $root_path;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- try_files $uri $uri/ /index.php?$args;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@replicano.ru.com";
- fastcgi_pass unix:/var/www/php-fpm/replicano_ru_com.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- fastcgi_buffer_size 32k;
- fastcgi_buffers 4 32k;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen 185.43.220.151:443 ssl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement