• I am developing a web server on a Raspberry Pi 4, using?Raspian Lite.I have installed Lamp software Debian Linux 11, Apache? 2.4.56,??MariaDB version 10.5.19,? php7.4 and WordPress 6.3.

     I have also installed phpmyadmin and webmin.I want to install multiple wordpress websites with unique top level domain names.Accessing the websites from the local network using Chrome and Edge is successful with the installed themes appearing as they shouldi.e. 192.168.1.9/website1.com192.168.1.9/website2.biz etc. display correctly.
    I have set up a static IP address (A.B.C.D) with my ISP and am able to access  the sites. Namelyhttps://A.B.C.D/website1.com and https://A.B.C.D/website2.biz etc. I have also set up the domain A records to point to the static IP address (A.B.C.D)i.e.https://website1.com , website2.biz etc. However the sites are unable to access the wp- content 

    and consequently appear as simple text sites in all cases 

    (I can see this by right clicking in the browser and selecting inspect and viewing the sources) 

    I cloned one of the sites from the RPi server and installed it on a remote host (fasthosts) and it works correctly. I also “recloned” it from the “fasthosts” site back to my local RPi server and remote access failed again.

    I have played with the apache2 “sites-available” conf files since I feel that the problem lies there, I made simple directory changes to “000-default.conf”  such as 

    DocumentRoot /var/www/html/website1.com

    Can you advise where I am messing up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    consequently appear as simple text sites in all cases

    So you can see your site’s content, but it has no images or styling? Then the WP part is working, it’s the supporting files that are not. The issues are more along the lines of .htaccess, firewall, or permissions configuration than HTTP routing.

    One thing to check…

    Are the sites URLs set up in the admin area (Settings -> General) as 192.168.1.9/website1.com or as website1.com?

    I ask this because it’s the most common issue. If the site is set up as 192.168.1.9/website1.com and it’s being accessed remotely by website1.com then the site will use the local URL to serve out all content – including stylesheets, images, etc.

    Remember, you can only have a single URL set up at any time. Trying to use two (or more) just isn’t possible with WordPress the way it is today.

    If that’s what’s happening to your site, I’d suggest looking through Moving WordPress to see the steps to take to change the URLs to the live ones that are needed to view the site from the internet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatability between local and remote access’ is closed to new replies.