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,8 +1,10 @@
<?php
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;
if ($_SERVER['SCRIPT_FILENAME']=='/usr/local/vesta/web/reset/mail/index.php') $login_url_skip=1;