Jump to content

[QNAP] web address no going to web server / index.html

BelgianNoise

As of yesterday my xxxxx.myqnapcloud.com address isnt going to my index.html anymore. It will use the index.php file which redirects me to the remote desktop login.
adding "/index.html" at the end of the address does work tho.

I renamed the index.php file to index2.php to check if it would default to that, but it still uses the .php file.

Any idea on why this is happening ?

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

I don't have experience with QNAP products but what is the possibly it receives regular updates from the manufacturer? It's possible they changed a setting that defaults the DNS request to index.php. It's always possible there's a setting that let's you choose which file to default to but I don't know how to change that. In the meantime it's good to know that adding the specific file to the URL does result in page you want to go to. It means there may not necessarily be something wrong here. Just a settings issue.

 

In the event it's not an update issue did you try restarting the unit? Standard practice troubleshooting.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, Windows7ge said:

I don't have experience with QNAP products but what is the possibly it receives regular updates from the manufacturer? It's possible they changed a setting that defaults the DNS request to index.php. It's always possible there's a setting that let's you choose which file to default to but I don't know how to change that. In the meantime it's good to know that adding the specific file to the URL does result in page you want to go to. It means there may not necessarily be something wrong here. Just a settings issue.

 

In the event it's not an update issue did you try restarting the unit? Standard practice troubleshooting.

i did happen after a "larger" update of the OS yes.
I am gonna look deeper into the settings later this week.
tnx for the reply

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, BelgianNoise said:

i did happen after a "larger" update of the OS yes.
I am gonna look deeper into the settings later this week.
tnx for the reply

That would be suspect as to the cause then. It also means this may be a relatively simple fix but don't let me get your hopes up.

 

Let us know how it goes. Try to find settings related to the URL. See if there's a setting for the Default page it takes you to.

 

Yep. :D

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, BelgianNoise said:

i did happen after a "larger" update of the OS yes.
I am gonna look deeper into the settings later this week.
tnx for the reply

Assuming you're not using the index.PHP file - just delete it. The web server is likely defaulting to PHP first, then HTML second.

 

You can likely change this - there might be a hidden htaccess file, or if you can actually get to the apache config file:
/etc/config/apache/apache.conf

 

You can also check the Virtual Server settings and see if there's a redirect there.

 

Alternatively, you can just edit the PHP file to redirect straight to index.html - or you can just use the PHP file and add all your HTML to it (though some format changes in the code might be required - been a while since I dealt with PHP).

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, dalekphalm said:

Assuming you're not using the index.PHP file - just delete it. The web server is likely defaulting to PHP first, then HTML second.

 

You can likely change this - there might be a hidden htaccess file, or if you can actually get to the apache config file:
/etc/config/apache/apache.conf

 

You can also check the Virtual Server settings and see if there's a redirect there.

 

Alternatively, you can just edit the PHP file to redirect straight to index.html - or you can just use the PHP file and add all your HTML to it (though some format changes in the code might be required - been a while since I dealt with PHP).

holy darn, thats smart. redirecting in the php file. gonna try that

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, BelgianNoise said:

holy darn, thats smart. redirecting in the php file. gonna try that

simple yet effective - and as long as your NAS's processor isn't being brought to it's knees, it should only marginally increase load times.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, dalekphalm said:

simple yet effective - and as long as your NAS's processor isn't being brought to it's knees, it should only marginally increase load times.

really dont care about load times, i used teh index.html as a redirect itself haha. and its a celeron quad core, so should be fine

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

Alright here is what i tried:
I replaced : 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
<meta http-equiv="expires" content="0">
<script type='text/javascript'>
        location.href = '<?=$webAccessUrl?>';
</script>
        </head>
</html>


With this in the index.php file :
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
<meta http-equiv="expires" content="0">
<script type='text/javascript'>
        location.href = 'bananass.myqnapcloud.com:9080/WelcomeManager';
</script>
        </head>
</html>

 

The "'<?=$webAccessUrl?>'" above calls a function that does something that isnt important i think, let me know if u want me to post it.

When i go to do.ma.in/index.php it still redirects me to the remote desktop manager.
I restarted "/etc/init.d/Qthttpd.sh" which is the http server according to internet.

Could one of you maybe provide me with a short php file that has nothing in it but the working redirect for "bananass.myqnapcloud.com:9080/WelcomeManager". I am really not familiar with php code.

 

tnx for ur time again

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

Update:
This code for the redirect works
 

<?php header("Location: http://bananass.myqnapcloud.com:9080/WelcomeManager"); ?>

But it still goes to the remote desktop website :/
So i guess it just doesnt use the index.php file either.

 

I am here to learn, please correct me if im wrong or you see me putting bs on your screen!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×