deploiement
This commit is contained in:
parent
78a95d00ae
commit
d31ad88293
1 changed files with 27 additions and 0 deletions
27
nginx.default
Normal file
27
nginx.default
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
server {
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
root /home/site/wwwroot/public; # Point crucial : on vise /public
|
||||
index index.php index.html index.htm;
|
||||
port_in_redirect off;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_connect_timeout 300;
|
||||
fastcgi_send_timeout 3600;
|
||||
fastcgi_read_timeout 3600;
|
||||
}
|
||||
|
||||
location ~ /\.git {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue