Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks like you want to hide Site B from the public eye.</p> <p>The easiest way is to create a reverse proxy between Site A and Site B. You can do something like sitea.com/pdf-items/ will serve siteb.com/ </p> <p>EDIT:</p> <p>The reverse proxy can be cross domain, the servers do not have to share anything in common, except for Site B being accessible by Site A (which sounds like it is already)</p> <p>Apache has a simple approach using mod_proxy (<a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html" rel="nofollow">http://httpd.apache.org/docs/2.2/mod/mod_proxy.html</a>)</p> <p>A quick google pulls up a guide for setting it up on Apache. <a href="http://www.apachetutor.org/admin/reverseproxies" rel="nofollow">http://www.apachetutor.org/admin/reverseproxies</a></p> <p>Nginx has one too <a href="http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html" rel="nofollow">http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html</a></p> <p>IIS is a bit more complicated and I've never set it up, but the ability does exist according to the documentation.</p> <p>EDIT 2: Approaching</p> <p>Here we don't have to worry about PHP component. What happens is that the Apache server will map forward the request based on the proxy specified e.g. if Proxy is set Sitea.com/pdf siteb.com/ then sitea.com/pdf/alpha.pdf will actually request siteb.com/alpha.pdf . In this schema it will ignore the sitea.com PHP routing all together, but will honor siteb.com routing as it is a full-fledged request but done by sitea's webserver.</p> <p>In regards to honoring, the requests for siteb, it implies that sitea.com/pdf/getpdf.php?id=1 will actually go through all motions as going to sitea.com/getpdf.php?id=1.</p> <p>Alternatively if you want to setup a VHOST on siteA.com such as pdf.sitea.com you can setup the proxy that pdf.sitea.com maps to siteb.com, but this would be useless if both sitea and siteb are publicly accessible. </p> <p>The reverse proxy works best if sitea.com is available to your audience and siteB is behind a firewall that has restricted access, so the proxy will let sitea.com visit a section of siteb.com that otherwise would not be accessible.</p> <p>Files that would be modified are siteA.com Apache configuration for the host by enabling the proxy_mod and setting up the ProxyPass and ProxyReversePass under the VHOST or Server configuration.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload