Commit 11107d51 authored by Ludovic Courtès's avatar Ludovic Courtès

nginx: Move location blocks to separate file.

* nginx-locations.conf: New file.
* nginx.conf: Include it.  Remove commented out sections.
parent e3cd1cef
location / {
root /home/ludo/src/guix-hpc-web/site;
}
# For use by Certbot.
location /.well-known {
root /var/www;
}
......@@ -41,23 +41,8 @@ http {
listen 80;
server_name guix-hpc.bordeaux.inria.fr;
access_log /var/log/nginx/http.access.log;
# location /private/draft {
# proxy_pass http://localhost:8080;
# proxy_redirect default;
# }
# location /static { # fonts
# proxy_pass http://localhost:8080;
# proxy_redirect default;
# }
location / {
root /home/ludo/src/guix-hpc-web/site;
}
# For use by Certbot.
location /.well-known {
root /var/www;
}
include nginx-locations.conf;
}
server {
listen 443 ssl;
......@@ -80,22 +65,6 @@ http {
access_log /var/log/nginx/http.access.log;
location / {
root /home/ludo/src/guix-hpc-web/site;
}
# For use by Certbot.
location /.well-known {
root /var/www;
}
include nginx-locations.conf;
}
# server {
# listen 8080;
# server_name guix-hpc.bordeaux.inria.fr;
# access_log /var/log/nginx/http.access.log;
# rewrite ^/private/draft/(.*) /$1;
# location / {
# root /home/ludo/src/guix-hpc-web/site;
# }
# }
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment