I have an EC2 Win2008 server running an ASP.NET 4.5 site www.mysite.com.
In the same AWS zone but another separate EC2 Linux server, I have an NginX/PHP WordPress site running blog.mysite.com.
I would like to create an AWS Route53 route so that all incoming requests to www.mysite.com/blog get silently routed to blog.mysite.com WITHOUT a redirect so that the user’s web browser stays on the URL www.mysite.com/blog
How would I achieve this with Route53? If not achievable with Route53, is there any other way?
I don’t want to run PHP/MySQL/WordPress on my Windows server, unless I absolutely have to.
Thanks!
Only way is to put an Apache or nginx in front of both the site that is hosting your ASP.NET 4.5 app and your WordPress site.
Then you can setup a reverse proxy on that server that makes that
/blog
path point to your WordPress site and the/
path point to your ASP.NET 4.5 app.For nginx you would have something like this:
Keep in mind that your
/blog
path has to be first in the priority otherwise all the requests will get sent to just/