Can I view a Wordpress instance without attaching a domain name?

1

Hi folks,

I fired up a Lightsail instance and installed several Wordpress instances in the /sites directory, i.e., sites/wp1, sites/wp2, etc. Is it possible to view these sites without attaching a domain to them? I thought I could just go http://publicIPaddress/sites/wp1 to open Wordpress, but this doesn't work. Is there another way?

If not, my next step would be to try and launch one domain and attach several subdomains, each pointing at a separate instance.

If this is confusing, my goal was to move six or seven of my domains to AWS, redesign them, migrate content and launch them when finished -- but I was hoping to leave them live in their current location until I was ready to launch.

Any advice would be appreciated. Thanks in advance.

Charlie
asked 2 months ago144 views
2 Answers
2

you can use the public IP address of your Lightsail instance along with the appropriate path to each WordPress installation.

profile picture
EXPERT
answered 2 months ago
1

Check Web Server Configuration: Ensure that your web server (most likely Apache or Nginx) is configured to serve the Wordpress installations from the /sites directory. This involves setting up virtual hosts or server blocks for each Wordpress instance.

Check Wordpress Configuration: Ensure that the Wordpress installations are correctly set up in their respective directories (/sites/wp1, /sites/wp2, etc.). You may need to adjust Wordpress's configuration to reflect the correct URL paths.

Access via IP and Directory Path: Try accessing the Wordpress instances using the public IP address followed by the directory path. For example, if your Lightsail instance's IP address is X.X.X.X, and Wordpress is installed in /sites/wp1, you would try accessing http://X.X.X.X/wp1.

answered a month ago
  • The wp files are set up in /sites correctly - when I add a S53 hosted zone and change the dns records to the new location, they display the blank wp site. Using the public IP and path doesn't work.

    For the subdomains, I think that I haven't set up the server blocks correctly. I followed the instructions here, but this didn't work either: https://stackoverflow.com/questions/20100869/configure-nginx-with-a-subdomain

    Thanks again for all the help!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions