Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| cherry:templates_files [2021/11/23 17:39] – créée pierre | cherry:templates_files [2021/12/20 17:02] (Version actuelle) – supprimée pierre | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Templates Files ====== | ||
| - | ===== Nginx ===== | ||
| - | |||
| - | ==== Vhost classique ==== | ||
| - | |||
| - | ==== Vhost phpMyadmin ==== | ||
| - | |||
| - | <code nginx> | ||
| - | server { | ||
| - | listen 80; | ||
| - | server_name mgen.octopuce.fr; | ||
| - | return 301 https:// | ||
| - | } | ||
| - | |||
| - | |||
| - | server { | ||
| - | |||
| - | listen [::]:443 ssl; | ||
| - | listen 443 ssl; | ||
| - | ssl_certificate / | ||
| - | ssl_certificate_key / | ||
| - | |||
| - | server_name mgen.octopuce.fr; | ||
| - | |||
| - | server_tokens off; | ||
| - | |||
| - | |||
| - | location ^~ / { | ||
| - | |||
| - | root /var/www/; | ||
| - | |||
| - | index index.php index.html index.htm; | ||
| - | |||
| - | location ~ ^/ | ||
| - | try_files $uri =404; | ||
| - | root /var/www/; | ||
| - | fastcgi_pass unix:/ | ||
| - | | ||
| - | | ||
| - | include / | ||
| - | } | ||
| - | |||
| - | |||
| - | |||
| - | location ~* ^/ | ||
| - | root /var/www/; | ||
| - | } | ||
| - | } | ||
| - | |||
| - | location /phpMyAdmin { | ||
| - | rewrite ^/* /phpmyadmin last; | ||
| - | } | ||
| - | |||
| - | |||
| - | } | ||
| - | |||
| - | </ | ||