The domain name was somehow pointed to the local, but the hosts did not specify the domain name, what is the matter?

Source: Internet
Author: User
Title.

After installing the Discuz locally, and then moving the discuz to the server, where the server is bound to open the domain name, so strange things appear: This domain name always specify a local address: http://localhost/open/upload/ Portal.php?mod=list&catid=1

Now the problem is: I removed the domain name analysis, the server is also deleted all the things.
Mobile phone to access this domain is empty.
(now I have this domain name resolved to the server, now I open the domain through the phone can see Hello World and a few garbled symbols.)

But the main question is: I enter this domain name on the local computer, or jump to the local address: http://localhost/open/upload/portal.php?mod=list&catid=1

I only know that modifying the Hosts file can place a domain name pointing to the local, but the problem is that the hosts file on my computer has not been modified. Why would you jump to local?

Add: Thanks to everyone who answers and comments, the final question is simply the reason for the browser cache. Because before I changed a browser tried, so I have not suspected is a cache problem. But it seems that you are still connecting to the server when you use that browser.

Just now I changed another browser to try and found that it would not.

It's just, it's not quite clear. After installing Discuz locally, which settings have been updated, so that it will jump to the home page after uploading the server?!

Reply content:

Title.

After installing the Discuz locally, and then moving the discuz to the server, where the server is bound to open the domain name, so strange things appear: This domain name always specify a local address: http://localhost/open/upload/ Portal.php?mod=list&catid=1

Now the problem is: I removed the domain name analysis, the server is also deleted all the things.
Mobile phone to access this domain is empty.
(now I have this domain name resolved to the server, now I open the domain through the phone can see Hello World and a few garbled symbols.)

But the main question is: I enter this domain name on the local computer, or jump to the local address: http://localhost/open/upload/portal.php?mod=list&catid=1

I only know that modifying the Hosts file can place a domain name pointing to the local, but the problem is that the hosts file on my computer has not been modified. Why would you jump to local?

Add: Thanks to everyone who answers and comments, the final question is simply the reason for the browser cache. Because before I changed a browser tried, so I have not suspected is a cache problem. But it seems that you are still connecting to the server when you use that browser.

Just now I changed another browser to try and found that it would not.

It's just, it's not quite clear. After installing Discuz locally, which settings have been updated, so that it will jump to the home page after uploading the server?!

Landlord can ping your domain name, look at the return IP,
Clear the browser cache or try a different browser.

You look at the domain name on the server pointing to the/etc/hosts in this file.
It is possible that the domain name on the server points to localhost and localhost does not point to 127.0.0.1, causing you to point to the Local on each visit

I think this question is probably the reason why you install DZ locally, pay attention to this detail. So it could be an application domain name or a related configuration item where your local URL has been written to the database. such as the configuration of UC, you can search under whether there is your local URL

Change the address in DZ to your domain name and put it on the server.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.