Z
Zarken
Guest
Hey, i've tried using https://xenforo.com/help/friendly-urls/ to get Friendly URLs working but my website just errors with '404 Not Found' i'm using Nginx, here's my config - well most of it anyway:
Is there anything missing?
Code:
server {
root /var/www/html;
index index.html index.htm index.nginx-debian.html index.php;
server_name gidentity.net www.gidentity.net;
location / {
try_files $uri $uri/ /xf/index.php?$uri&$args;
}
location /install/data/ {
internal;
}
location /install/templates/ {
internal;
}
location /internal_data/ {
internal;
}
location /library/ {
internal;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
if ($host = www.gidentity.net) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = gidentity.net) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name gidentity.net www.gidentity.net;
return 404; # managed by Certbot
}
Is there anything missing?