Incompatability between local and remote access
-
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.com, 192.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- contentand 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.
- The topic ‘Incompatability between local and remote access’ is closed to new replies.