server { listen 443 ssl; listen [::]:443 ssl; ## listen for ipv4; this line is default and implied # listen [::]:80 default_server ipv6only=on; ## listen for ipv6 root /var/www/api.taler.net/docs/_build/; # Make site accessible from http://localhost/ server_name docs.taler.net; server_name www.docs.taler.net; include conf.d/talerssl; location / { autoindex off; ssi off; # ssi_last_modified on; } location /current/merchant-backend { root /var/www/merchant/doc/; rewrite (/current/merchant-backend)/(.*) /$2 break; } location /current/merchant-shop/php { root /var/www/merchant-frontend-examples/php/doc/; rewrite (/current/merchant-shop/php)/(.*) /$2 break; } location /current/merchant-shop/python { root /var/www/merchant-frontend-examples/python/doc/; rewrite (/current/merchant-shop/python)/(.*) /$2 break; } include conf.d/favicon_robots; }