mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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
|
<?php
|
||||||
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
|
if (file_exists('/usr/local/vesta/web/inc/nginx_proxy')==true) {
|
||||||
header("Location: /webmail/");
|
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']=="/") {
|
||||||
exit;
|
header("Location: /webmail/");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$login_url_skip=0;
|
$login_url_skip=0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue