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
已提问 2 个月前159 查看次数
2 回答
2

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

profile picture
专家
已回答 2 个月前
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.

已回答 2 个月前
  • 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!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则