Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| logiciel:reseau:http:serveur:nginx:raspi:default:start [2024/09/21 10:43] – supprimée - modification externe (Unknown date) 127.0.0.1 | logiciel:reseau:http:serveur:nginx:raspi:default:start [2024/09/21 10:43] (Version actuelle) – ↷ Page déplacée de logiciel:reseau:web:serveur:nginx:raspi:default:start à logiciel:reseau:http:serveur:nginx:raspi:default:start admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | {{tag> | ||
| + | ====== Fichier / | ||
| + | |||
| + | <code - / | ||
| + | ## | ||
| + | # You should look at the following URL's in order to grasp a solid understanding | ||
| + | # of Nginx configuration files in order to fully unleash the power of Nginx. | ||
| + | # https:// | ||
| + | # https:// | ||
| + | # https:// | ||
| + | # | ||
| + | # In most cases, administrators will remove this file from sites-enabled/ | ||
| + | # leave it as reference inside of sites-available where it will continue to be | ||
| + | # updated by the nginx packaging team. | ||
| + | # | ||
| + | # This file will automatically load configuration files provided by other | ||
| + | # applications, | ||
| + | # available underneath a path with that package name, such as /drupal8. | ||
| + | # | ||
| + | # Please see / | ||
| + | ## | ||
| + | |||
| + | # Default server configuration | ||
| + | # | ||
| + | server { | ||
| + | listen 80 default_server; | ||
| + | listen [::]:80 default_server; | ||
| + | |||
| + | # SSL configuration | ||
| + | # | ||
| + | # listen 443 ssl default_server; | ||
| + | # listen [::]:443 ssl default_server; | ||
| + | # | ||
| + | # Note: You should disable gzip for SSL traffic. | ||
| + | # See: https:// | ||
| + | # | ||
| + | # Read up on ssl_ciphers to ensure a secure configuration. | ||
| + | # See: https:// | ||
| + | # | ||
| + | # Self signed certs generated by the ssl-cert package | ||
| + | # Don't use them in a production server! | ||
| + | # | ||
| + | # include snippets/ | ||
| + | |||
| + | root / | ||
| + | |||
| + | # Add index.php to the list if you are using PHP | ||
| + | index index.html index.htm index.nginx-debian.html; | ||
| + | |||
| + | server_name _; | ||
| + | |||
| + | location / { | ||
| + | # First attempt to serve request as file, then | ||
| + | # as directory, then fall back to displaying a 404. | ||
| + | try_files $uri $uri/ =404; | ||
| + | } | ||
| + | |||
| + | # pass PHP scripts to FastCGI server | ||
| + | # | ||
| + | #location ~ \.php$ { | ||
| + | # include snippets/ | ||
| + | # | ||
| + | # # With php-fpm (or other unix sockets): | ||
| + | # | ||
| + | # # With php-cgi (or other tcp sockets): | ||
| + | # | ||
| + | #} | ||
| + | |||
| + | # deny access to .htaccess files, if Apache' | ||
| + | # concurs with nginx' | ||
| + | # | ||
| + | #location ~ /\.ht { | ||
| + | # deny all; | ||
| + | #} | ||
| + | } | ||
| + | |||
| + | |||
| + | # Virtual Host configuration for example.com | ||
| + | # | ||
| + | # You can move that to a different file under sites-available/ | ||
| + | # to sites-enabled/ | ||
| + | # | ||
| + | #server { | ||
| + | # listen 80; | ||
| + | # listen [::]:80; | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # root / | ||
| + | # index index.html; | ||
| + | # | ||
| + | # location / { | ||
| + | # | ||
| + | # } | ||
| + | #} | ||
| + | </ | ||
| + | ===== Voir aussi ===== | ||
| + | |||
| + | * **(fr)** [[http:// | ||
| + | * **(en)** [[http:// | ||
| + | |||
| + | ---- | ||
| + | //Basé sur << [[http:// | ||