Search code examples
phpwordpresssubdomain

How can I have a wordpress page and a windows server web application under the same domain?


I have a web application on C# on a Windows server under some domain. I want to change the look of the home page with WordPress adding a landing page and some news related. I don't have easy access to the Windows server machine. I have quick access just to the FTP. In order to make a change on the server I have to make a request and this takes time. Also I have quick access to the domain configuration.

I want to keep WordPress on another server but I don't know what should I do to keep the same domain on the URL. By example:

example.com/wordpress -> go to WordPress server

example.com/ -> go to Windows server web application

How can I accomplish this?


Solution

  • This would be achieved by having something like NginX or HaProxy listening for all requests on HTTP/HTTPS ports and mapping requests to the relevant backend based on the path requested.