user image

Published in : 2022-02-25

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


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 “” already. I created a subdirectory through cPanel.

Sample for my Domain name and structure:

Subdirectory: [Unable to connect AWS EC2 Instance here]

Subdomain: [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.

Source Website: Medium



Shilpa Date : 2022-02-26

Best answers


Best answers


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

Is it possible to git commit files without adding a message or comments?
Publish date: 2022-03-02 | Comments: 2

Tag: General

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

Tag: General

How to checkout to new created branch on bitbucket
Publish date: 2022-03-03 | Comments: 1

Tag: General

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

Tag: General

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

Tag: General