Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name ph-crm.agensus.ru ;
- ssl_certificate "/var/www/httpd-cert/ph/ph-crm.agensus.ru_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/ph/ph-crm.agensus.ru_le1.key";
- ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
- charset UTF-8;
- index index.php index.html;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/ph-crm.agensus.ru/*.conf;
- access_log /var/www/httpd-logs/ph-crm.agensus.ru.access.log;
- error_log /var/www/httpd-logs/ph-crm.agensus.ru.error.log notice;
- ssi on;
- set $root_path /var/www/ph/data/www/ph-crm.agensus.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;
- location /api {
- try_files $uri /index.php$is_args$args;
- }
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
- expires 7d;
- }
- }
- location @php {
- try_files $uri =404;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@ph-crm.agensus.ru";
- fastcgi_pass unix:/var/www/php-fpm/ph.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- }
- listen 188.246.226.190:443 ssl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement