Arc Forumnew | comments | leaders | submitlogin
How do I set up apache proxy for arc web server?
2 points by johnz 5879 days ago | 2 comments
I want to set up an apache server to sit in front of the arc server such that mydomain.com forwards to the arc server and mydomain.com/folder does not. How can I do this? thanks!


2 points by CatDancer 5878 days ago | link

  ProxyPass /folder/ !
  ProxyPass / http://localhost:8080/ retry=0
Apache will use the first matching ProxyPass, so the one for the folder needs to come first, since / will match any request. The ! tells Apache not to proxy that path. The retry=0 is a useful addition, if your Arc server is down it tells Apache not to wait to retry it; that way Apache will start proxying again immediately when your Arc server comes back up.

-----

2 points by eds 5878 days ago | link

See http://arclanguage.org/item?id=8644. Specifically, it contains a link to http://arclanguage.com/item?id=3498, an example Apache config for Arc.

-----