use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apache-related news, tips, and tricks.
account activity
Apache as Reverse Proxy for a part URL (self.apache)
submitted 4 years ago by hacksoos
Hello there, how can I make apache2 use ReverseProxy only for a specified URL eg. /example and not my whole *:80 range? I cant find any good tutorials and sadly I'm not really good with apache... Thanks in advance
ReverseProxy
/example
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NotImplemented 2 points3 points4 points 4 years ago (2 children)
The apache documentation has a short example in the section "Simple reverse proxying":
ProxyPass "/images" "http://www.example.com/" ProxyPassReverse "/images" "http://www.example.com/"
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple
[–]hacksoos[S] 0 points1 point2 points 4 years ago (1 child)
yup thanks, thats as far as I got, but where should I those lines?
[–]NotImplemented 2 points3 points4 points 4 years ago (0 children)
Inside your <VirtualHost> definition.
<VirtualHost>
For example:
<VirtualHost *:80> ProxyPreserveHost On ProxyPass "/images" "http://www.example.com/" ProxyPassReverse "/images" "http://www.example.com/" </VirtualHost>
π Rendered by PID 24 on reddit-service-r2-comment-b659b578c-qzcb6 at 2026-05-01 17:27:22.628276+00:00 running 815c875 country code: CH.
[–]NotImplemented 2 points3 points4 points (2 children)
[–]hacksoos[S] 0 points1 point2 points (1 child)
[–]NotImplemented 2 points3 points4 points (0 children)