Imagine you have several web sites deployed in different servers. It’s posible to share the main domain? V.g.:
mydomain.com/site1
mydomain.com/site2
mydomain.com/site3
Answer
Short answer: yes. It’s far far easier to use a subdomain since otherwise you would need a proxy.
To extend on this, suppose you have site1, site2, and site3 on different web servers. Rather than trying to mess with a proxy, simply add a subdomain to your domain like site1.domain.com
that points to the proper web server.
The more complicated method (if you can’t have/don’t want subdomains) is to use something like nginx to proxy requests for the specific folders to a remote site. This page has a decent starting point: http://www.kirkdesigns.co.uk/nginx-proxy-apache-access-remote-host-ip-address-using-modpraf
Again, it’s much much easier to just add a subdomain.
Attribution
Source : Link , Question Author : Apocatastasis , Answer Author : Nathan C