Till Brehm
2016-07-24 b9a3ef486ebcde18a5ade37865ff8f397185d24f
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;
bae4a6 39                fastcgi_param HTTP_PROXY "";
4ffb51 40         }
F 41
42         location ~ /\. {
43                deny  all;
44         }
45         
f19eb6 46 #        location /phpmyadmin {
F 47 #               root /usr/share/;
48 #               index index.php index.html index.htm;
49 #               location ~ ^/phpmyadmin/(.+\.php)$ {
50 #                       try_files $uri =404;
51 #                       root /usr/share/;
52 #                       include /etc/nginx/fastcgi_params;
ca0b77 53 #                       fastcgi_pass unix:{fpm_socket};
f19eb6 54 #                       {ssl_comment}fastcgi_param  HTTPS {fastcgi_ssl};
F 55 #                       fastcgi_index index.php;
56 #                       fastcgi_param SCRIPT_FILENAME $request_filename;
57 #               }
58 #               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
59 #                       root /usr/share/;
60 #               }
61 #        }
62 #        location /phpMyAdmin {
63 #               rewrite ^/* /phpmyadmin last;
64 #        }
65 #        
66 #        location /squirrelmail {
67 #               root /usr/share/;
68 #               index index.php index.html index.htm;
69 #               location ~ ^/squirrelmail/(.+\.php)$ {
70 #                       try_files $uri =404;
71 #                       root /usr/share/;
72 #                       include /etc/nginx/fastcgi_params;
ca0b77 73 #                       fastcgi_pass unix:{fpm_socket};
f19eb6 74 #                       {ssl_comment}fastcgi_param  HTTPS {fastcgi_ssl};
F 75 #                       fastcgi_index index.php;
76 #                       fastcgi_param SCRIPT_FILENAME $request_filename;
77 #               }
78 #               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
79 #                       root /usr/share/;
80 #               }
81 #        }
82 #        location /webmail {
83 #               rewrite ^/* /squirrelmail last;
84 #        }
c6f93e 85 }