www-ssl.site (1582B)
1 server { 2 listen 443 ssl; 3 listen [::]:443 ssl; ## listen for ipv4; this line is default and implied 4 #listen [::]:80 default_server ipv6only=on; ## listen for ipv6 5 6 7 # Make site accessible from http://localhost/ 8 server_name taler.net; 9 server_name www.taler.net; 10 include conf.d/talerssl; 11 12 location / { 13 root /home/docbuilder/www.taler.net; 14 autoindex off; 15 ssi on; 16 #ssi_last_modified on; 17 18 rewrite ^/$ /$index_redirect_uri/ redirect; 19 20 rewrite ^/(..)/$ /$1/index.html break; 21 22 rewrite ^/(help/empty-wallet)$ /$1.html break; 23 rewrite ^/wallet-installation\.html$ /en/wallet.html redirect; 24 # just to get around cached old redirect 25 rewrite ^/wallet\.en\.html$ /en/wallet.html redirect; 26 rewrite ^/wallet$ /en/wallet.html redirect; 27 rewrite ^/press$ /en/press.html redirect; 28 } 29 30 gzip on; 31 gzip_disable "msie6"; 32 gzip_vary on; 33 gzip_proxied any; 34 gzip_comp_level 6; 35 gzip_buffers 16 8k; 36 gzip_http_version 1.1; 37 gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; 38 39 40 # Note: this will go to /var/www/(videos|releases), which we took out of Git 41 location /videos { 42 root /var/www; 43 expires max; 44 } 45 46 location ~* /videos/.*\.(png|jpg|ogv|webm|gif|svg)$ { 47 root /var/www; 48 expires max; 49 } 50 51 location /releases { 52 root /var/www; 53 autoindex on; 54 } 55 56 location /files { 57 root /var/www; 58 } 59 }