commit | author | age
|
4ffb51
|
1 |
server { |
F |
2 |
listen {apps_vhost_ip}{apps_vhost_port}; |
|
3 |
|
|
4 |
server_name {apps_vhost_servername}; |
|
5 |
|
|
6 |
root {apps_vhost_dir}; |
|
7 |
|
|
8 |
location / { |
|
9 |
index index.php index.html; |
|
10 |
} |
|
11 |
|
|
12 |
# serve static files directly |
|
13 |
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ { |
|
14 |
access_log off; |
|
15 |
} |
|
16 |
|
|
17 |
location ~ \.php$ { |
ad9986
|
18 |
try_files $uri =404; |
F |
19 |
include /etc/nginx/fastcgi_params; |
ca0b77
|
20 |
fastcgi_pass unix:{fpm_socket}; |
4ffb51
|
21 |
fastcgi_index index.php; |
F |
22 |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
23 |
fastcgi_param PATH_INFO $fastcgi_script_name; |
ad9986
|
24 |
fastcgi_buffer_size 128k; |
F |
25 |
fastcgi_buffers 256 4k; |
|
26 |
fastcgi_busy_buffers_size 256k; |
|
27 |
fastcgi_temp_file_write_size 256k; |
4ffb51
|
28 |
} |
F |
29 |
|
|
30 |
location ~ /\. { |
|
31 |
deny all; |
|
32 |
} |
f19eb6
|
33 |
|
F |
34 |
location /phpmyadmin { |
|
35 |
root /usr/share/; |
|
36 |
index index.php index.html index.htm; |
|
37 |
location ~ ^/phpmyadmin/(.+\.php)$ { |
|
38 |
try_files $uri =404; |
|
39 |
root /usr/share/; |
|
40 |
include /etc/nginx/fastcgi_params; |
e91947
|
41 |
# To access phpMyAdmin, the default user (like www-data on Debin/Ubuntu) must be used |
F |
42 |
fastcgi_pass 127.0.0.1:9000; |
f19eb6
|
43 |
fastcgi_index index.php; |
F |
44 |
fastcgi_param SCRIPT_FILENAME $request_filename; |
|
45 |
} |
|
46 |
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
|
47 |
root /usr/share/; |
|
48 |
} |
|
49 |
} |
|
50 |
location /phpMyAdmin { |
|
51 |
rewrite ^/* /phpmyadmin last; |
|
52 |
} |
|
53 |
|
|
54 |
location /squirrelmail { |
|
55 |
root /usr/share/; |
|
56 |
index index.php index.html index.htm; |
|
57 |
location ~ ^/squirrelmail/(.+\.php)$ { |
|
58 |
try_files $uri =404; |
|
59 |
root /usr/share/; |
|
60 |
include /etc/nginx/fastcgi_params; |
e91947
|
61 |
# To access SquirrelMail, the default user (like www-data on Debin/Ubuntu) must be used |
F |
62 |
fastcgi_pass 127.0.0.1:9000; |
f19eb6
|
63 |
fastcgi_index index.php; |
F |
64 |
fastcgi_param SCRIPT_FILENAME $request_filename; |
|
65 |
} |
|
66 |
location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
|
67 |
root /usr/share/; |
|
68 |
} |
|
69 |
} |
|
70 |
location /webmail { |
|
71 |
rewrite ^/* /squirrelmail last; |
|
72 |
} |
4ffb51
|
73 |
} |