user image

Rakshit
Published in : 2022-02-25

Unable to Connect AWS EC2 Instance with my subdirectory through domain registrar.

General

I went through with AWS EC2 Documentation provided by AWS with lots of trials and errors.

My registrar is GoDaddy and my requirement is to set up the application hosted on EC2 Instance on a subdirectory of my domain name. It works for subdomains. Is there any way that I can run my AWS services to a subdirectory?

I am running WordPress on “example.com” already. I created a subdirectory through cPanel.

Sample for my Domain name and structure: example.com

Subdirectory: example.com/apps [Unable to connect AWS EC2 Instance here]

Subdomain: apps.example.com [It works fine using “The Simple Way to Connect AWS EC2 Instance with Your Domain Name” solution]

Let me know if you need more information.

What is advisable? Your valuable opinion will be appreciated.

 

Comments

Shilpa Date : 2022-02-26

Best answers

10

Best answers

10

Ideally, you can't bifurcate your WordPress installation and subdirectory installation with a different IP address. In case if your post or page contains URL parts as “apps”, it will be an ambiguous page and conflict with your subdirectory and the page/posts.

I recommend using subdomains instead of subdirectories. It will be easy to SEO your content from the subdomains.

 

Rakshit Date : 2022-02-26

Alright! I am thinking in the same manner! I am not able to connect the subdirectory with my AWS EC2 Instance.

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Connecting jupyter notebook with Android studio
Publish date: 2022-03-05 | Comments: 1

Tag: General

[solved] Unable to pull updates from git "sudo git pull"
Publish date: 2021-12-20 | Comments: 1

Tag: General

Where can I find cheap Java and Mysql hosting server?
Publish date: 2022-05-03 | Comments: 2

Tag: General

Difference between frontend and backend user authentication
Publish date: 2022-02-12 | Comments: 2

Tag: General

Choose default editor from filezilla on Ubuntu
Publish date: 2022-02-28 | Comments: 4

Tag: General

docker elastic builder exited with code 127?
Publish date: 2022-02-27 | Comments: 2

Tag: General