Topic: nginx rules
Hello,
someone here who installed Monstra on nginx webserver? I do not get it installed with nginx. ![]()
Regards
You are not logged in. Please login or register.
Hello,
someone here who installed Monstra on nginx webserver? I do not get it installed with nginx. ![]()
Regards
Hi)
Vetalyi propose such config:
# Monstra config
server {
listen 80;
server_name www.monstra.net monstra.net;
access_log /var/log/nginx/monstra.net_access.log;
error_log /var/log/nginx/monstra.net_error.log;
root /var/www/monstra;
index index.php;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|txt|js|map)$ {
expires 1d;
}
location / {
rewrite /home / permanent;
rewrite ^/(.+)$ /index.php;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}We have tested it, and it works)
Thank you, Awilum! ![]()