try to get PW 3.0.30 up on Ubuntu 16.04 / nginx version: nginx/1.10.0 (Ubuntu)
the installation works fine but afterwards only default page displays, any other throws a 404 error page.
we looked at the PW on Ngnix on Howtoforge
any idea, thanks
nginx access.log shows:
server {
listen 80;
server_name processwire;
index index.php index.html;
root /var/www/html/promowall.ch/public_html/ProcessWire-devns;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
default_type application/x-php;
### SECURITY - Protect crucial files
location ~ /\. {
deny all;
}
location ~ /(COPYRIGHT|LICENSE|README|htaccess)\.txt {
deny all;
}
location ~ ^/site(-[^/]+)?/assets/(.*\.php|backups|cache|config|install|logs|sessions) {
deny all;
}
location ~ ^/site(-[^/]+)?/install {
deny all;
}
location ~ ^/(site(-[^/]+)?|wire)/(config(-dev)?|index\.config)\.php {
deny all;
}
location ~ ^/((site(-[^/]+)?|wire)/modules|wire/core)/.*\.(inc|module|php|tpl) {
deny all;
}
location ~ ^/(site(-[^/]+)?|wire)/templates(-admin)?/.*\.(inc|html?|php|tpl) {
deny all;
}
### GLOBAL REWRITE
location /ProcessWire-devns {
try_files $uri $uri/ /index.php?it=$uri&$args;
}
# pass the PHP scripts to FastCGI server on local socket
#
location ~ .+\.php((/|\?).*)?$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_MOD_REWRITE On;
include fastcgi_params;
}
# redirect server error pages to the static page /40x.html
error_page 404 /404.html;
location = /40x.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}