35 lines
921 B
Plaintext
35 lines
921 B
Plaintext
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
|
ssl_certificate_key /etc/ssl/certs/nginx-selfsigned.key;
|
|
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
|
|
|
server
|
|
{
|
|
listen 80 default_server;
|
|
server_name _;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server
|
|
{
|
|
listen 443 ssl default_server;
|
|
return 301 https://rralambo.42.fr$request_uri;
|
|
}
|
|
|
|
server
|
|
{
|
|
listen 443 ssl;
|
|
server_name rralambo.42.fr;
|
|
index index.php index.html index.htm;
|
|
root /var/www/wordpress;
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_index index.php;
|
|
fastcgi_pass wordpress:9000;
|
|
include fastcgi_params;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
}
|