Forum

Why is website directory required for reverse proxy?

TheSmokingDuck
26 January 2017, 03:15

Hello Everybody!
I was wondering if anyone could answer the question of why is a website directory a required configuration variable if I am merely going to Reverse proxy the virtual host to be served on a different port.

What I am attempting to do is reverse proxy
 http://some.example.com:8080 
to
 http://some.example.com:80 
. I will not need a directory to serve the location, so why is one required?

So far when I add a
WebsiteRoot
, I am served the contents of the website root, rather than the content of the other server. Not sure why it is doing this. I had believed if I remove the
WebsiteRoot
variable it would allow the forwarding of content to the other location on the other port (8080).

If I need to add a
WebsiteRoot
to the reverse proxy configuration , then what web directory should I offer.

Thanks for any help offered.

So when are we going to start the Hugo Leisink fan club? I will join.
The Smoking Duck
26 January 2017, 03:17
I apologize for obtrusive use of markup. Reformatting might be needed for clarification.
Hugo Leisink
27 January 2017, 15:28
The reason why a websiteroot is required is that it's hard to tell whether all regular expressions cover all URL's. So, just to be sure, a websiteroot is required. Simply point it to an empty directory and you're done.
This topic has been closed.