s'occuper de wordpress
This commit is contained in:
@@ -1,25 +1,28 @@
|
||||
server {
|
||||
#SSL/TLS Configuration
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
ssl_protocols TLSv1.3;
|
||||
ssl_certificate /etc/nginx/ssl/inception.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/inception.key;
|
||||
listen 443 ssl default_server;
|
||||
ssl_certificate /etc/ssl/certs/server.crt;
|
||||
|
||||
#root and index and server_name
|
||||
root /var/www/html;
|
||||
server_name yantoine.42.fr;
|
||||
#index;
|
||||
index index.php
|
||||
|
||||
# Pour toutes les requetes php
|
||||
location ~ [^/]\.php(/|$) {
|
||||
try_files $uri =404;
|
||||
fastcgi_pass wordpress:9000;
|
||||
include snippets/fastcgi-php.conf;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
ssl_certificate_key /etc/ssl/private/server_pkey.pem;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
index index.php;
|
||||
|
||||
server_name $DOMAIN_NAME;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
# Include the fastcgi-php configuration snippet
|
||||
include snippets/fastcgi-php.conf;
|
||||
|
||||
# Set the SCRIPT_FILENAME parameter to the full path of the requested script
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
|
||||
|
||||
# Forward requests to the PHP-FPM service listening on the wordpress host on port 9000
|
||||
fastcgi_pass wordpress:9000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user