46 lines
907 B
Plaintext
46 lines
907 B
Plaintext
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
server_name __dolibarr_domain__;
|
||
|
|
||
|
include snippets/acme-challenge.conf;
|
||
|
|
||
|
return 301 https://$http_host$request_uri;
|
||
|
|
||
|
root /htdocs/;
|
||
|
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl http2;
|
||
|
server_name __dolibarr_domain__;
|
||
|
|
||
|
root /var/www/dolibarr/htdocs;
|
||
|
|
||
|
index index.html index.php;
|
||
|
ssl_certificate /etc/ssl/__dolibarr_domain__.crt;
|
||
|
ssl_certificate_key /etc/ssl/private/__dolibarr_domain__.key;
|
||
|
|
||
|
include snippets/secure-ssl.conf;
|
||
|
|
||
|
include snippets/acme-challenge.conf;
|
||
|
|
||
|
location / {
|
||
|
|
||
|
try_files $uri $uri/ =404;
|
||
|
|
||
|
}
|
||
|
|
||
|
location ~ [^/]\.php(/|$) {
|
||
|
fastcgi_intercept_errors on;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|