Skip to content

Commit 0d24339

Browse files
committed
Remove force "/" in Nginx reverse proxy
1 parent c910fa2 commit 0d24339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ function update($event_name, $data) {
14181418
$rewrite_rules = array();
14191419
$local_rewrite_rules = array();
14201420
if($data['new']['redirect_type'] != '' && $data['new']['redirect_path'] != '') {
1421-
if(substr($data['new']['redirect_path'], -1) != '/') $data['new']['redirect_path'] .= '/';
1421+
//if(substr($data['new']['redirect_path'], -1) != '/') $data['new']['redirect_path'] .= '/';
14221422
if(substr($data['new']['redirect_path'], 0, 8) == '[scheme]'){
14231423
if($data['new']['redirect_type'] != 'proxy'){
14241424
$data['new']['redirect_path'] = '$scheme'.substr($data['new']['redirect_path'], 8);
@@ -1580,7 +1580,7 @@ function update($event_name, $data) {
15801580
$vhost_data['use_proxy'] = 'y';
15811581
$rewrite_subdir = $tmp_redirect_path_parts['path'];
15821582
if(substr($rewrite_subdir, 0, 1) == '/') $rewrite_subdir = substr($rewrite_subdir, 1);
1583-
if(substr($rewrite_subdir, -1) != '/') $rewrite_subdir .= '/';
1583+
//if(substr($rewrite_subdir, -1) != '/') $rewrite_subdir .= '/';
15841584
if($rewrite_subdir == '/') $rewrite_subdir = '';
15851585
}
15861586
}

0 commit comments

Comments
 (0)