Updated nginx Templates for Better Matches / Alias

This commit is contained in:
earnolmartin 2023-07-12 23:53:44 -06:00
parent 50c92f1ff1
commit 458cba3372
3 changed files with 2 additions and 22 deletions

View file

@ -61,10 +61,6 @@ server {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
location /webmail2/ {
root {ehcpdir}/;

View file

@ -83,11 +83,11 @@ server {
}
}
location /webmail {
location /webmail/ {
rewrite ^/* /roundcube last;
}
location /roundcube {
location /roundcube/ {
root /usr/share/;
index index.php index.html index.htm;

View file

@ -137,22 +137,6 @@ server {
}
}
location /extplorer/ {
root {ehcpdir}/;
index index.php index.html index.htm;
location ~ ^/extplorer/(.+\.php)$ {
try_files $uri =404;
root {ehcpdir}/;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www:/tmp:/usr/share:/var/www/php_sessions \n upload_tmp_dir=/tmp \n session.save_path=/var/www/php_sessions";
include /etc/nginx/fastcgi_params;
limit_req zone=one burst=5;
}
}
# Alias
location = /webmail2 {