Added FrontController CMS
This commit is contained in:
30
CMS/frontcontroller/Nginx-unconfigured
Normal file
30
CMS/frontcontroller/Nginx-unconfigured
Normal file
@@ -0,0 +1,30 @@
|
||||
#beginConf
|
||||
|
||||
#access_log /var/log/nginx/SITEname-access.log;
|
||||
error_log /var/log/nginx/SITEname-error.log;
|
||||
|
||||
index index.php index.html;
|
||||
root /var/www/DOMAINname/html;
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/javascript application/x-javascript image/svg image/svg+xml application/xml image/x-icon;
|
||||
gzip_comp_level 2;
|
||||
gzip_disable "msie6";
|
||||
gzip_buffers 16 8k;
|
||||
|
||||
#include snippets/ngx-backendredir.conf;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ $uri.html /index.php$is_args$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/phpPHPver-fpm-SITEname.sock;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
#endConf
|
||||
Reference in New Issue
Block a user