Dont redirect to webmail if vesta is not behind nginx

This commit is contained in:
myvesta 2018-10-12 16:24:43 +02:00 committed by GitHub
commit fdb6baf7ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;