location /sfiles { rewrite ^/sfiles(.*) https://opatop.com/files$1 permanent; } location /s2 { rewrite ^/s2(.*) http://89.38.97.150/files$1 permanent; } location /s3 { rewrite ^/s3(.*) http://85.93.91.98/files$1 permanent; } location /s4 { rewrite ^/s4(.*) http://188.138.33.211/files$1 permanent; } location /s5 { rewrite ^/s5(.*) http://62.138.18.49/files$1 permanent; } location /s6 { rewrite ^/s6(.*) http://62.138.18.52/files$1 permanent; } location /s7 { rewrite ^/s7(.*) http://62.75.207.59/files$1 permanent; } location = /index.php { if ($request_uri = /index.php) { rewrite ^(.*)$ / redirect; } fastcgi_pass unix:/var/www/php-fpm/www-root.sock; fastcgi_index index.php; fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@2020porno.com"; include fastcgi_params; } location / { location ~ [^/]\.ph(p\d*|tml)$ { try_files /does_not_exists @php; } if ($request_uri ~ "^(.*)index\.(?:html|php)") { return 301 $1; } if ($host ~* www\.(.*)) { set $host_without_www $1; rewrite ^(.*)$ http://$host_without_www$1 permanent; } rewrite ^/admin/?$ /admin/index.php; rewrite ^/screen/(.*)/?$ /?do=screen&url=$1; rewrite ^/404.html/?$ /?do=404; rewrite ^/account/sign-up/?$ /?do=reg last; rewrite ^/account/sign-in/?$ /?do=login last; rewrite ^/account/sign-out/?$ /?do=exit last; rewrite ^/account/recovery/?$ /?do=recovery last; rewrite ^/account/like/?$ /?do=user_like last; rewrite ^/account/like/([0-9]+)/?$ /?do=user_like&page=$1; rewrite ^/newest/([0-9]+)/?$ /?do=newest&page=$1; rewrite ^/newest/?$ /?do=newest; rewrite ^/views-top/([0-9]+)/?$ /?do=top_views&page=$1; rewrite ^/views-top/?$ /?do=top_views; rewrite ^/best-top-porn/([0-9]+)/?$ /?do=top_rating&page=$1; rewrite ^/best-top-porn/?$ /?do=top_rating; rewrite ^/search/(.*)/?$ /?do=search&text=$1; rewrite ^/search/?$ /?do=search; rewrite ^/abuses/?$ /?do=abuses; rewrite ^/agreement/?$ /?do=agreement; rewrite ^/categories/?$ /?do=category; rewrite ^/js/likeps?$ /?do=like; rewrite ^/([A-Za-z0-9-=_.]+)-([0-9]+).html?$ /?do=video&q=$1&id=$2 last; rewrite ^/([A-Za-z0-9-=_]+)/([0-9]+)/?$ /?do=category_video&article=$1&page=$2; rewrite ^/([A-Za-z0-9-=_]+)/?$ /?do=category_video&article=$1; location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ttf|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { expires 120d; } location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { expires 62d; } }