22 lines
471 B
Nginx Configuration File
22 lines
471 B
Nginx Configuration File
server {
|
|
#SSL/TLS Configuration
|
|
listen 443 ssl;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_certificate /etc/nginx/ssl/inception.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/inception.key;
|
|
|
|
#root and index and server_name
|
|
root /var/www/html;
|
|
server_name yantoine.42.fr;
|
|
index index.php index.html index.htm;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# Pour toutes les requetes php
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass php:9000;
|
|
}
|
|
} |