From 133c62577ab950d99af7bfe0cf7cdc457454b8a1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 4 Aug 2019 16:22:15 +0200 Subject: [PATCH] server/web/sites --- in/personal/server/index.rst | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/in/personal/server/index.rst b/in/personal/server/index.rst index b10437e..29f189d 100644 --- a/in/personal/server/index.rst +++ b/in/personal/server/index.rst @@ -297,8 +297,36 @@ Prepare a grub.cfg } } +Web +--- + +Sites +^^^^^ + +:: + + ssl_certificate /etc/nginx/rwx.work/bundle.crt; + ssl_certificate_key /etc/nginx/rwx.work/key.pem; + + server { + listen 443 ssl; + listen [::]:443 ssl; + server_name deb.rwx.work; + root /d/mirrors/apt-mirror/debian; + autoindex on; + } + + server { + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + server_name .rwx.work; + location / { + proxy_pass http://10.0.0.1/; + } + } + Certificate ------------ +^^^^^^^^^^^ * /etc/nginx/rwx.work * key.pem