• Hello,

    Today I installed the latest edition of Ubuntu, then followed the instructions on https://help.ubuntu.com/community/WordPress to install WordPress. It installed without any errors.

    When I access it from the local machine by https://localhost/, fine

    but when I try to access it from 127.0.0.1, or 192.168.1.x (or) https://ubuntu/ from any pc including the host, I get a page that says only “404 not found.”

    I have tried to set the URL’s in WordPress’s settings to “https://ubuntu/” (ubuntu is the machine’s network name), and to its DHCP ip address. When I do that, I get that error for all pages, and I can’t get back in to reset it.

    Thanks for any help!

    Daniel

Viewing 5 replies - 1 through 5 (of 5 total)
  • Check your /etc/hosts. Make sure you have something like the following:

    127.0.0.1 localhost
    192.168.1.2 ubuntu

    Also check your /etc/hosts.conf which should be like:
    order hosts,bind

    Thread Starter danfpa

    (@danfpa)

    I tried that – the second line of /etc/hosts was different, I corrected it, and same problem. I post this in the WP forums because the 404 error seems to be the same as what is generated in one of the WP config php files.

    If it works using localhost but not when using IP # or ubuntu then it is an IP or DNS issue. If it was WP don’t think localhost would work at all.

    Hi All,

    I’m experiencing the exact same problem. The blog appears fine thru’ https://localhost/wordpress/ and reports a 404 error when trying to gain access via https://192.168.1.6/wordpress/. I don’t think this is a DNS issue as the IP address is being called explicitly and I know the IP address is correct.

    Was this issue ever resolved? Any more suggestions?

    Thank you,

    The issue is yours, not WordPress. You see, every computer in the world believe it is localhost. So, when you’re on a computer that isn’t running WP and attempt to browse to a localhost address, you’re attempting to browse to yourself, not the machine hosting the site.

    So, from the machine actually running WordPress log in and change the URL values to a real/resolvable DNS name or a routable IP address.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 not found error from any address but “https://localhost”’ is closed to new replies.