1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-05 12:48:00 +02:00

Updated Installation on a Web Server (markdown)

Sergey Romanenko
2014-01-14 06:29:40 -08:00
parent b17506bbf2
commit 55c44b0f57

@@ -50,4 +50,35 @@ Options -Indexes
# Update code bellow for SEO improvements
# Redirect 301 /home http://example.org/
</IfModule>
```
```
#### Ngnix config for Monstra
```
# 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;
}
}
```