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