@RvR nginx in 1.9 needs special rewrite rules for its config files.
@Anepom try this, I have a test server with nginx. Edit your nginx.conf and add this:
location ~ (^\.|/\.) {
return 403;
}location /cache {
rewrite ^/cache\/(.*)$ /engine/handlers/cache_handler.php?request=$1&$query_string;
}location /export {
rewrite ^/export\/([A-Za-z]+)\/([0-9]+)\/?$ /engine/handlers/export_handler.php?view=$1&guid=$2;
rewrite ^/export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ /engine/handlers/export_handler.php?view=$1&guid=$2&type=$3&idname=$4;
}location = /rewrite.php {
rewrite ^(.*)$ /install.php;
}location / {
try_files $uri $uri/ /index.php?__elgg_uri=$uri&$query_string;
}# Do not put CSS there or it will break simplecache
location ~* \.(bmp|js|gif|ico|jpg|jpeg|png)$ {
expires max;
# log_not_found off;
}location ~ /\.ht {
deny all;
}location ~ /\.git {
deny all;
}location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/php-nginx/141332349017611.sock/socket;
}
Results may vary.
@[cim] I've talked about Elgg 1.9.x
Sorry didn't read, I barley saw that link you posted where I got my problem fixed.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.