Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
4ffb51 1 server {
f9b8d0 2         listen {vhost_port};
3279f8 3         listen [::]:{vhost_port} ipv6only=on;
3c3580 4         ssl {ssl_on};
53124e 5         {ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
4ffb51 6         {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
F 7         {ssl_comment}ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
3c3580 8         
B 9         # redirect to https if accessed with http
10         {ssl_comment}error_page 497 https://$host:{vhost_port}$request_uri;
4ffb51 11
F 12         server_name _;
13
14         root   /usr/local/ispconfig/interface/web/;
15
dec0df 16         client_max_body_size 20M;
T 17
4ffb51 18         location / {
F 19                index index.php index.html;
20         }
21
22         # serve static files directly
cb214c 23         location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
4ffb51 24                access_log        off;
F 25         }
26
27         location ~ \.php$ {
f92749 28                try_files $uri =404;
ad9986 29                include /etc/nginx/fastcgi_params;
ca0b77 30                fastcgi_pass unix:{fpm_socket};
4ffb51 31                fastcgi_index index.php;
F 32                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
cc6568 33                #fastcgi_param PATH_INFO $fastcgi_script_name;
ad9986 34                fastcgi_buffer_size 128k;
F 35                fastcgi_buffers 256 4k;
36                fastcgi_busy_buffers_size 256k;
37                fastcgi_temp_file_write_size 256k;
a9b325 38                fastcgi_read_timeout 1200;
4ffb51 39         }
F 40
41         location ~ /\. {
42                deny  all;
43         }
44         
f19eb6 45 #        location /phpmyadmin {
F 46 #               root /usr/share/;
47 #               index index.php index.html index.htm;
48 #               location ~ ^/phpmyadmin/(.+\.php)$ {
49 #                       try_files $uri =404;
50 #                       root /usr/share/;
51 #                       include /etc/nginx/fastcgi_params;
ca0b77 52 #                       fastcgi_pass unix:{fpm_socket};
f19eb6 53 #                       {ssl_comment}fastcgi_param  HTTPS {fastcgi_ssl};
F 54 #                       fastcgi_index index.php;
55 #                       fastcgi_param SCRIPT_FILENAME $request_filename;
56 #               }
57 #               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
58 #                       root /usr/share/;
59 #               }
60 #        }
61 #        location /phpMyAdmin {
62 #               rewrite ^/* /phpmyadmin last;
63 #        }
64 #        
65 #        location /squirrelmail {
66 #               root /usr/share/;
67 #               index index.php index.html index.htm;
68 #               location ~ ^/squirrelmail/(.+\.php)$ {
69 #                       try_files $uri =404;
70 #                       root /usr/share/;
71 #                       include /etc/nginx/fastcgi_params;
ca0b77 72 #                       fastcgi_pass unix:{fpm_socket};
f19eb6 73 #                       {ssl_comment}fastcgi_param  HTTPS {fastcgi_ssl};
F 74 #                       fastcgi_index index.php;
75 #                       fastcgi_param SCRIPT_FILENAME $request_filename;
76 #               }
77 #               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
78 #                       root /usr/share/;
79 #               }
80 #        }
81 #        location /webmail {
82 #               rewrite ^/* /squirrelmail last;
83 #        }
c6f93e 84 }