Pi3rrot.net

Yet another Wiki on the Interweb

Outils pour utilisateurs

Outils du site


cherry:templates_files

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
cherry:templates_files [2021/11/24 15:22] – [Vhost classique] pierrecherry:templates_files [2021/12/20 17:02] (Version actuelle) – supprimée pierre
Ligne 1: Ligne 1:
-====== Templates Files ====== 
  
-===== Nginx ===== 
- 
-==== Vhost classique ==== 
- 
-<code nginx> 
-server { 
-        listen 80; 
-        listen [::]:80; 
- 
-        server_name jeu-mgenkids.fr; 
- 
- 
-        location /.well-known { 
-            root /var/www/letsencrypt; 
-        } 
- 
-</code> 
- 
-==== Vhost phpMyadmin ==== 
- 
-<code nginx> 
-server { 
-        listen 80; 
-        server_name mgen.octopuce.fr; 
-        return 301 https://$server_name$request_uri; 
-} 
- 
- 
-server { 
- 
-    listen [::]:443 ssl; 
-    listen 443 ssl; 
-    ssl_certificate /etc/ssl/private/localhost.crt+chain; 
-    ssl_certificate_key /etc/ssl/private/localhost.key; 
- 
-    server_name mgen.octopuce.fr; 
- 
-    server_tokens off; 
- 
- 
- location ^~ / { 
- 
-         root /var/www/; 
- 
-         index index.php index.html index.htm; 
- 
-         location ~ ^/phpmyadmin/(.+\.php)$ { 
-                 try_files $uri =404; 
-                 root /var/www/; 
-                 fastcgi_pass unix:/var/run/php/php7.3-fpm-pma.sock; 
-          fastcgi_index index.php; 
-        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
-        include /etc/nginx/fastcgi_params; 
-         } 
- 
- 
- 
-         location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { 
-                 root /var/www/; 
-         } 
- } 
- 
- location /phpMyAdmin { 
-         rewrite ^/* /phpmyadmin last; 
- } 
- 
- 
-} 
- 
-</code> 
cherry/templates_files.1637763764.txt.gz · Dernière modification : 2022/03/24 22:29 (modification externe)