mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Dont redirect to webmail if vesta is not behind nginx
This commit is contained in:
parent
1d7119d6d9
commit
fdb6baf7ae
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
|
||||
header("Location: /webmail/");
|
||||
exit;
|
||||
if (file_exists('/usr/local/vesta/web/inc/nginx_proxy')==true) {
|
||||
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
|
||||
header("Location: /webmail/");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$login_url_skip=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue