Hello,
I still have some sites running with robot scripts, and I have moved to a new server, but for some reason, the performer's page and tags aren't working. When I click on the models, it just shows me the index page, not the performer page. Same thing with the tags.
Does anyone have any working nginx conf? Or anyone knows how to fix my config?
Thanks
Edit: I forgot to mention that my performer's page is like this:
https://domain.com/user/performersname/
And tags are:
https://domain.com/tag/anal/
This is my conf:
Code:
server {
listen 80;
listen 443;
server_name domain.com www.domain.com;
access_log /var/log/nginx/domain.com.log combined;
error_log /var/log/nginx/domain.com.error_log warn;
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
root /home/httpd/html/domain.com/public_html;
index index.php;
location ~ /.well-known { root /var/www; allow all; }
rewrite ^/user/(.*)$ /user/index.php?url=$1;
rewrite ^/page/(.*)$ /index.php;
rewrite ^/category/(.*)$ /index.php;
rewrite ^/tag/(.*)$ /./tag/index.php?url=$1;
rewrite ^/sitemap_index\.xml$ /./sitemap/cb.sitemap_index.php?id=1 last;
rewrite ^/sitemap\.xml(.*)$ /./sitemap/cb.sitemap_page.php?$query_string last;
location ~* \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gz|gzip|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|ogv|otf|pdf|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|t?gz|tif|tiff|ttf|wav|webm|wma|woff|wri|xla|xls|xlsx|xlt|xlw|zip|png|jpg|jpeg|gif|ico|js|css)$ {
expires max;
access_log off;
log_not_found off;
add_header Vary Accept-Encoding;
add_header Pragma public;
add_header Cache-Control "max-age=31536000, public";
etag off;
}
location ~ /\. { deny all; }
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php56-fpm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_read_timeout 1200;
fastcgi_max_temp_file_size 0;
fastcgi_buffer_size 4K;
fastcgi_buffers 64 4k;
}
}