SoManyPosts
Active member
I'm trying to get the friendly URLs working on my website but the pages keep going to 404.
Here's the config if anyone wouldn't mind helping. Don't I just paste this at the end of my nginx file?
	
	
	
		
				
			Here's the config if anyone wouldn't mind helping. Don't I just paste this at the end of my nginx file?
		Code:
	
	server {
    listen   [::]:80;
    server_name  www.domain.com domain.com;
    root   /usr/share/nginx/html;
    index  index.html index.htm index.php;
    access_log  /usr/share/nginx/html/domain.com.access.log; 
    location / {
        try_files            $uri $uri/ /index.php?$uri&$args;
    }
   
    location /data/ {
        allow                127.0.0.1;
        deny                all;
    }
   
    location /internal_data/ {
        allow                127.0.0.1;
        deny                all;
    }
   
    location /library/ {
        allow                127.0.0.1;
        deny                all;
    }
    location ~ \.php$ {
        fastcgi_index            index.php;
        fastcgi_pass            127.0.0.1:9000;
        include                fastcgi.conf;
        fastcgi_intercept_errors    on;
        fastcgi_ignore_client_abort    on;
    }
}
	