vadviktor
5/17/2016 - 3:34 PM

Nginx config for folder based static documentation reading, using a private domain resolved by local dns proxy (dnsmasq).

Nginx config for folder based static documentation reading, using a private domain resolved by local dns proxy (dnsmasq).

server {
  listen 80 default_server;

  server_name ~^(?<docroot>.+).lodocs$;

  root /var/www/html/$docroot;

  autoindex on;
  index index.html index.htm;

  location / {
    try_files $uri $uri/ =404;
  }
}