letsencrypt install + ssl nginx conf vhost

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-06 19:15:20 +02:00
parent 10738b8897
commit 9677df40ab
7 changed files with 341 additions and 81 deletions

View File

@@ -1,31 +0,0 @@
server {
listen 80;
location /phpmyadmin {
# server_name phpmyadmin.idroot.net;
root /usr/share/phpmyadmin;
index index.php;
## Images and static content is treated different
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires max;
}
location ~ /\.ht {
deny all;
}
location ~ /(libraries|setup/frames|setup/libs) {
deny all;
return 404;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}