Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- return 301 https://$host:443$request_uri;
- }
- server {
- server_name runetki.chat www.runetki.chat;
- ssl_certificate "/var/www/httpd-cert/runetki_chat/runetki.chat_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/runetki_chat/runetki.chat_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 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/runetki.chat/*.conf;
- access_log /var/www/httpd-logs/runetki.chat.access.log;
- error_log /var/www/httpd-logs/runetki.chat.error.log notice;
- ssi on;
- set $root_path /var/www/runetki_chat/data/www/runetki.chat;
- root $root_path;
- listen 185.198.164.145:443 ssl;
- 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;
- rewrite ^([^.\?]*[^/])$ $1/ permanent;
- location /img/models_img/i/ {
- proxy_pass https://runetki.sexy:443;
- }
- location / {
- if ($request_method ~ "^POST$"){
- rewrite ^/g/ /functions/search.php;
- }
- if ($http_host ~ "^www\.(.*)$"){
- rewrite ^(.*)$ https://$host$1 redirect;
- }
- rewrite "^/([a-z]{2})/1/" /$1/ redirect;
- rewrite "^/([a-z]{2})/$" /index.php?lang=$1;
- rewrite "^/([a-z]{2})/([0-9]+)/$" /index.php?lang=$1&page=$2;
- rewrite "^/([a-z]{2})/(male|female|couples|transsexual|new|spy)/([0-9]+)/$" /index.php?lang=$1&gender=$2&page=$3;
- rewrite "^/([a-z]{2})/(male|female|couples|transsexual|new|spy)/$" /index.php?lang=$1&gender=$2;
- rewrite "^/([a-z]{2})/tag/([-a-zA-Z0-9_]+)/$" /index.php?lang=$1&tag=$2;
- rewrite "^/([a-z]{2})/tag/([-a-zA-Z0-9_]+)/([0-9]+)/$" /index.php?lang=$1&tag=$2&page=$3;
- rewrite "^/([a-z]{2})/tag/([-a-zA-Z0-9_]+)/$" /index.php?lang=$1&tag=$2;
- rewrite "^/([a-z]{2})/tag/([-a-zA-Z0-9_]+)/([0-9]+)/$" /index.php?lang=$1&tag=$2&page=$3;
- rewrite "^/([0-9]+)/$" /index.php?&page=$1;
- if (!-e $request_filename){
- rewrite "^/([a-z]{2})/([-a-zA-Z0-9_]+)/([0-9]+)/$" /index.php?lang=$1&cat=$2&page=$3;
- }
- if (!-e $request_filename){
- rewrite ^/([-a-zA-Z0-9_]+)/([0-9]+)/$ /index.php?cat=$1&page=$2;
- }
- if (!-e $request_filename){
- rewrite "^/([a-z]{2})/([-a-zA-Z0-9_]+)/$" /index.php?lang=$1&cat=$2;
- }
- if (!-e $request_filename){
- rewrite ^/([-a-zA-Z0-9_]+)/$ /index.php?cat=$1;
- }
- rewrite "^/([a-z]{2})/cam/([-a-zA-Z0-9_]+)/$" /index.php?lang=$1&room=$2;
- 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 15h;
- }
- }
- location /1/ {
- rewrite ^/1/$ / redirect;
- }
- location /ru/ {
- rewrite ^/ru/$ / redirect;
- }
- location /male/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /female/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /couples/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /transsexual/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /new/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /spy/ {
- rewrite ^/(male|female|couples|transsexual|new|spy)/([0-9]+)/$ /index.php?gender=$1&page=$2;
- rewrite ^/(male|female|couples|transsexual|new|spy)/$ /index.php?gender=$1;
- }
- location /tag/ {
- rewrite ^/tag/([-a-zA-Z0-9_]+)/$ /index.php?lang=en&tag=$1;
- rewrite ^/tag/([-a-zA-Z0-9_]+)/([0-9]+)/$ /index.php?tag=$1&page=$2;
- rewrite ^/tag/([-a-zA-Z0-9_]+)/$ /index.php?lang=en&tag=$1;
- rewrite ^/tag/([-a-zA-Z0-9_]+)/([0-9]+)/$ /index.php?tag=$1&page=$2;
- }
- location /cam/ {
- rewrite ^/cam/([-a-zA-Z0-9_]+)/$ /index.php?room=$1;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@runetki.chat";
- fastcgi_pass unix:/var/www/php-fpm/runetki_chat.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