summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/docs-ssl.site
blob: f07022008d120fff4391655af62d79c3525a9646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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/docs.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;
}