aboutsummaryrefslogtreecommitdiff
path: root/srcs/nginx_conf
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/nginx_conf')
-rw-r--r--srcs/nginx_conf/ft_server.com (renamed from srcs/nginx_conf/test.com)13
1 files changed, 12 insertions, 1 deletions
diff --git a/srcs/nginx_conf/test.com b/srcs/nginx_conf/ft_server.com
index b9d9de2..b04e470 100644
--- a/srcs/nginx_conf/test.com
+++ b/srcs/nginx_conf/ft_server.com
@@ -1,5 +1,10 @@
server {
- listen 80;
+ listen 443 ssl;
+ listen [::]:443 ssl;
+
+ ssl_certificate /root/ssl/localhost.pem;
+ ssl_certificate_key /root/ssl/localhost-key.pem;
+
server_name localhost;
index index.php;
root /var/www/wordpress;
@@ -28,3 +33,9 @@ server {
}
}
+server {
+ listen 80;
+ listen [::]:80;
+ server_name localhost;
+ return 301 https://$host$request_uri;
+}