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달 전155회 조회
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!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠