| | |
| | | location ~ /\. { |
| | | deny all; |
| | | } |
| | | |
| | | location /phpmyadmin { |
| | | root /usr/share/; |
| | | index index.php index.html index.htm; |
| | | location ~ ^/phpmyadmin/(.+\.php)$ { |
| | | try_files $uri =404; |
| | | root /usr/share/; |
| | | include /etc/nginx/fastcgi_params; |
| | | fastcgi_pass 127.0.0.1:{fpm_port}; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | } |
| | | location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |
| | | } |
| | | } |
| | | location /phpMyAdmin { |
| | | rewrite ^/* /phpmyadmin last; |
| | | } |
| | | |
| | | location /squirrelmail { |
| | | root /usr/share/; |
| | | index index.php index.html index.htm; |
| | | location ~ ^/squirrelmail/(.+\.php)$ { |
| | | try_files $uri =404; |
| | | root /usr/share/; |
| | | include /etc/nginx/fastcgi_params; |
| | | fastcgi_pass 127.0.0.1:{fpm_port}; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | } |
| | | location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |
| | | } |
| | | } |
| | | location /webmail { |
| | | rewrite ^/* /squirrelmail last; |
| | | } |
| | | } |