fixed weird redirect under nginx proxy_pass over apache2
This commit is contained in:
parent
8abf2c5e8a
commit
c8fac6f815
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
|
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
|
||||||
header ( "Location: " . $GLOBALS [ 'config' ] [ 'installation_path' ] . "/login" );
|
header ( "Location: " . $GLOBALS [ 'config' ] [ 'installation_path' ] . "/login" );
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) ) {
|
if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) ) {
|
||||||
switch ( $GLOBALS [ 'request_uri' ] [ 1 ] ) {
|
switch ( $GLOBALS [ 'request_uri' ] [ 1 ] ) {
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
||||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/sha512.min.js"></script>
|
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/sha512.min.js"></script>
|
||||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/login.js"></script>
|
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/login.js"></script>
|
||||||
<script>var script_name = "<?=$GLOBALS['config']['installation_path']?>";</script>
|
<script>var script_name = "<?=$GLOBALS['config']['installation_path']?>/dashboard";</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user