Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
install/tpl/nginx_apps.vhost.master
@@ -1,18 +1,26 @@
server {
        listen {apps_vhost_ip}{apps_vhost_port};
        listen {apps_vhost_port};
        listen [::]:{apps_vhost_port} ipv6only=on;
        ssl {ssl_on};
        {ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
        {ssl_comment}ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
        # redirect to https if accessed with http
        {ssl_comment}error_page 497 https://$host:{vhost_port}$request_uri;
        server_name {apps_vhost_servername};
        root   {apps_vhost_dir};
        client_max_body_size 20M;
        client_max_body_size 100M;
        location / {
               index index.php index.html;
        }
        # serve static files directly
        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
        location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
               access_log        off;
        }
@@ -97,7 +105,7 @@
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_read_timeout 240;
                       fastcgi_read_timeout 1200;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
@@ -199,4 +207,4 @@
               alias /var/lib/mailman/archives/public;
               autoindex on;
        }
}
}