Skip to content

Commit fdb6baf

Browse files
authored
Dont redirect to webmail if vesta is not behind nginx
1 parent 1d7119d commit fdb6baf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/inc/secure_login.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2-
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
3-
header("Location: /webmail/");
4-
exit;
2+
if (file_exists('/usr/local/vesta/web/inc/nginx_proxy')==true) {
3+
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
4+
header("Location: /webmail/");
5+
exit;
6+
}
57
}
68

79
$login_url_skip=0;

0 commit comments

Comments
 (0)