Setup PrettyURls for nginx is straight forward.
It's the same setup as for Wordpress.
Thanks to MultiformeIngegno
Code: [Select]
It's the same setup as for Wordpress.
Thanks to MultiformeIngegno
server {
server_name .DOMAIN.TLD;
index index.php;
root /var/www/WEDGE_INSTALLATION_DIR;
error_log /var/www/WEDGE_INSTALLATION_DIR/error.log;
#Specify a charset
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_read_timeout 180;
include fastcgi.conf;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
## Deny dot files:
location ~ /\. {
deny all;
}
## favicon.ico not found
location = /favicon.ico {
access_log off;
log_not_found off;
}
## robots.txt not found
location = /robots.txt {
access_log off;
log_not_found off;
}
}