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