Rakshit
Published in : 2022-02-25
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.
Source Website: Medium
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
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.