Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name admitriy.club www.admitriy.club;
- 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/admitriy.club/*.conf;
- access_log off;
- error_log /dev/null crit;
- ssi on;
- return 301 https://$host:443$request_uri;
- set $root_path /var/www/altercpa/data/www/admitriy.club;
- root $root_path;
- listen 62.212.86.184:80;
- location ~ /data/(cache|load|session|tpls|work) {
- deny all;
- return 403;
- }
- location ~ /tasks {
- deny all;
- return 403;
- }
- location /api {
- rewrite ^/api/([a-z]+)/([a-z\-]+)\.([a-z]+)/? /?api=$1&f=$2&t=$3 last;
- rewrite ^/api/? / redirect;
- }
- location /go {
- rewrite ^/go([0-9]+)$ /go.php?flow=$1;
- }
- location /to {
- rewrite ^/to([0-9]+)$ /go.php?test=$1;
- }
- location = /neworder {
- rewrite ^(.*)$ /?neworder=add last;
- }
- location / {
- rewrite ^/a-([a-z\-]+)/([0-9]+)/?$ /?a=$1&id=$2 last;
- rewrite ^/a-([a-z\-]+)/?$ /?a=$1 last;
- rewrite ^/([a-z\-]+)/([0-9]+)/?$ /?m=$1&id=$2 last;
- rewrite ^/([a-z\-]+)/?$ /?m=$1 last;
- try_files $uri $uri/ =404;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@admitriy.club";
- fastcgi_pass unix:/var/www/php-fpm/altercpa.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- }
- server {
- server_name admitriy.club www.admitriy.club;
- ssl_certificate "/var/www/httpd-cert/altercpa/admitriy.club_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/altercpa/admitriy.club_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 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/admitriy.club/*.conf;
- access_log off;
- error_log /dev/null crit;
- ssi on;
- set $root_path /var/www/altercpa/data/www/admitriy.club;
- root $root_path;
- listen 62.212.86.184:443 ssl;
- location ~ /data/(cache|load|session|tpls|work) {
- deny all;
- return 403;
- }
- location ~ /tasks {
- deny all;
- return 403;
- }
- location /api {
- rewrite ^/api/([a-z]+)/([a-z\-]+)\.([a-z]+)/? /?api=$1&f=$2&t=$3 last;
- rewrite ^/api/? / redirect;
- }
- location /go {
- rewrite ^/go([0-9]+)$ /go.php?flow=$1;
- }
- location /to {
- rewrite ^/to([0-9]+)$ /go.php?test=$1;
- }
- location = /neworder {
- rewrite ^(.*)$ /?neworder=add last;
- }
- location / {
- rewrite ^/a-([a-z\-]+)/([0-9]+)/?$ /?a=$1&id=$2 last;
- rewrite ^/a-([a-z\-]+)/?$ /?a=$1 last;
- rewrite ^/([a-z\-]+)/([0-9]+)/?$ /?m=$1&id=$2 last;
- rewrite ^/([a-z\-]+)/?$ /?m=$1 last;
- try_files $uri $uri/ =404;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@admitriy.club";
- fastcgi_pass unix:/var/www/php-fpm/altercpa.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement