I could really use a hand with what I think is an apache proxy problem.
Let's say I have a directory on Server A called /var/ I would like all web requests to be proxied by another server, Server B.
I would like any requests that call for to be served by /var/ on Server A, but I would like the URL to maintain the path shown by Server B (for example: /var/ on Server A could be viewed at ).
What would be the best apache directive and approach to accomplish this?
Also, if you can recommend a good book that might help demystify all this, I'd really appreciate it. The apache online docs are clear and very thorough, especially when you know exactly what you're looking for, but I'm finding myself going in circles on this one.
More info (only if it helps):
This may be too much information for this problem, but I am currently serving two directories on one machine, one authenticated (HTTPS) and one not (HTTP). Further, the authenticated directory contains dynamic content generated by scripts, and the unauthetnicated pages are crawled, HTML-only versions of the dynamic content. Finally, although the actual content between the two is essentially the same, the sub-directory structure isn't, due to the results of the crawler versus the much more flat nature of the scripted content.
So, what I want to do is:
- Proxy both the HTTP and HTTPS content from another server, so that the server host name will not appear to be different, save for the "S" in "HTTPS" (I've already got this working, albeit probably not the right way).
- Create a "virtual" directory structure that mirrors one server instance for the other, even though that directory does not actually exist in the other (/dir/ect/ory/ versus /directory). In essence, I need the URL space for the server instances to match (except for "HTTP:" versus "HTTPS:").
Eventually, I will move the HTTP stuff to a separate server so the HTTPS stuff will be a bit more secure, which may alleviate some (but not all) of these issues.
Thank you,
~John
Let's say I have a directory on Server A called /var/ I would like all web requests to be proxied by another server, Server B.
I would like any requests that call for to be served by /var/ on Server A, but I would like the URL to maintain the path shown by Server B (for example: /var/ on Server A could be viewed at ).
What would be the best apache directive and approach to accomplish this?
Also, if you can recommend a good book that might help demystify all this, I'd really appreciate it. The apache online docs are clear and very thorough, especially when you know exactly what you're looking for, but I'm finding myself going in circles on this one.
More info (only if it helps):
This may be too much information for this problem, but I am currently serving two directories on one machine, one authenticated (HTTPS) and one not (HTTP). Further, the authenticated directory contains dynamic content generated by scripts, and the unauthetnicated pages are crawled, HTML-only versions of the dynamic content. Finally, although the actual content between the two is essentially the same, the sub-directory structure isn't, due to the results of the crawler versus the much more flat nature of the scripted content.
So, what I want to do is:
- Proxy both the HTTP and HTTPS content from another server, so that the server host name will not appear to be different, save for the "S" in "HTTPS" (I've already got this working, albeit probably not the right way).
- Create a "virtual" directory structure that mirrors one server instance for the other, even though that directory does not actually exist in the other (/dir/ect/ory/ versus /directory). In essence, I need the URL space for the server instances to match (except for "HTTP:" versus "HTTPS:").
Eventually, I will move the HTTP stuff to a separate server so the HTTPS stuff will be a bit more secure, which may alleviate some (but not all) of these issues.
Thank you,
~John