diff options
Diffstat (limited to 'services/nuldoc/nginx.conf')
| -rw-r--r-- | services/nuldoc/nginx.conf | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/services/nuldoc/nginx.conf b/services/nuldoc/nginx.conf index eb1d913..311f600 100644 --- a/services/nuldoc/nginx.conf +++ b/services/nuldoc/nginx.conf @@ -1,9 +1,17 @@ +map $http_x_forwarded_host $docroot_path { + hostnames; + default /public/_; + about.* /public/about; + blog.* /public/blog; + slides.* /public/slides; +} + server { - listen 8001 default; - listen [::]:8001; + listen 80 default; + listen [::]:80; location / { - root /public; + root $docroot_path; location ~* ^.*/atom\.xml$ { types { } |
