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

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

Tag: General

git issue, fatal error: your current branch appears to be broken
Publish date: 2022-03-01 | Comments: 2

Tag: General

Select from a query with peewee
Publish date: 2022-03-05 | Comments: 0

Tag: General

Chrome shows cursor everywhere where I click?
Publish date: 2022-03-11 | Comments: 2

Tag: General

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

Tag: General

Help with sliding an image from the top of a stack
Publish date: 2022-02-12 | Comments: 1

Tag: General

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

Tag: General