Mobile app version of vmapp.org
Login or Join
Marchetta884

: Can this be achieved with a reverse-proxy? I have a website that was developed and is hosted on a Windows server (Server A). We want to have these Windows hosted pages to show up on another

@Marchetta884

Posted in: #Apache #Iis #ReverseProxy

I have a website that was developed and is hosted on a Windows server (Server A). We want to have these Windows hosted pages to show up on another website that is hosted on a Linux server (Server B). Server A and Server B are not on the same network and managed by two different webmasters.

Example:

Server A Windows 2003:


Domain is example.com
Example page would be example.com/dir/page.aspx Example pages would only be used to host pages and visitors
would never really visit this site (this domain would never show in
their browsers).


Server B Linux / Apache:


Domain is example2.com When visitors go to example2.com/dir/page.aspx, they are actually rendering pages from example.com/dir/page.aspx, but their browser shows example2.com

Does this make sense? Is this possible?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Marchetta884

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angie530

Yes. This is exactly what a reverse proxy is used for. We do the same exact thing and reverse proxy using NginX as our front end servers. We do this for multiple benefits.


NginX as the reverse proxy offloads SSL connections (meaning SSL cert is only installed on our linux Reverse proxy server)
We cache static resources (.css .js .gif .jpeg ....) This way Nginx doesnt need to go to the backend servers
The Reverse proxy gets its content from multiple IIS servers (This is known as load balancing, and can detect a failure in backend server and go to a different one)
NginX is extremely flexible as a reverse proxy so we can send www.oursite.com/blog to reverse proxy to blogger.com and then www.oursite.com/* to reverse proxy to our IIS Farm


You dont need to have different domains. Usually what is common practice is to setup your backend servers with subdomains. We do them as iis1.oursite.com iis2.oursite.com iis3.oursite.com

NginX and others can create sticky (send to same backend servers) based on session cookies, but its good practice if you want to scale to get rid of ASP.net / ASP / PHP session ids, and go with something more like Database sessions and cookie combinations.

I know your question you were asking about using Apache as a reverse proxy. I am not familiar with that, but if you make the switch to NginX you wont regret it. Its also very common for people to use NginX as a reverse proxy in front of Apache (even when Apache and NginX are on the same server, you just reverse proxy to a different port where apache listens on).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme