RE: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-28 Thread Robert Webb
d] Re: Proxying From Directory To App On Port

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-27 Thread Steven Shi
I'll try to clearly state what I did. When you said "Your Apache config proxies the URI prefix "/projects/CS32Brewer/". Is that the URI prefix your browser client code is using?", it occurred to me that if the Host was anchored to "localhost:80" and couldn't be changed to "localhost:2000", I could

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-27 Thread Kurtis Rader
On Thu, Aug 27, 2015 at 8:21 PM, Steven Shi wrote: > Hey Kurtis, > > I was in the middle of replying and then something clicked for me. I > spent the day today working on this one more time and ended up getting it > working. I believe my fundamental understanding of a proxy was simply > incorre

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-27 Thread Steven Shi
Hey Kurtis, I was in the middle of replying and then something clicked for me. I spent the day today working on this one more time and ended up getting it working. I believe my fundamental understanding of a proxy was simply incorrect. Your comment about the URI prefix was what made it click fo

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-26 Thread Kurtis Rader
On Tue, Aug 25, 2015 at 10:25 PM, Steven Shi wrote: > The "app" consists of a maven built java back-end which utilizes the maven > build of apache spark ("http://sparkjava.com/";). To my understanding, > the spark API initiates a Jetty server which listens on a specified port > for GET / POST re

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-25 Thread Kurtis Rader
On Tue, Aug 25, 2015 at 3:46 PM, Steven Shi wrote: > yes, they are both located on port 2000. I am indeed using the reverse > proxy option. > On Tue, Aug 25, 2015 at 5:13 PM, Robert Webb wrote: > Some clarification needed here. >> >> Is the app and the jetty backend on the same server? If so,

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-25 Thread Steven Shi
yes, they are both located on port 2000. I am indeed using the reverse proxy option. On Tue, Aug 25, 2015 at 5:13 PM, Robert Webb wrote: > Some clarification needed here. > > Is the app and the jetty backend on the same server? If so, are you using > the reverse proxy option because jetty typica

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-25 Thread Robert Webb
Some clarification needed here. Is the app and the jetty backend on the same server? If so, are you using the reverse proxy option because jetty typically would listen on port 80 and is on a different server from the app but you have a need for app and jetty on the same server so the jetty nee

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-25 Thread Steven Shi
My webserver is not listening on port 2000, the Jetty back end server of the app is. The app is a maven build of apache spark which runs the Jetty server; I have it set to listen on port 2000. The app in "any requests the app makes" would be the frontend of the server that uses jquery for requests

Re: [users@httpd] Re: Proxying From Directory To App On Port

2015-08-24 Thread Kurtis Rader
On Mon, Aug 24, 2015 at 9:52 PM, Steven Shi wrote: > I have looked at and tried using the ProxyPassReverse directive. > > So the app communicates with the back end over port 2000. Any requests > the app makes are sent to localhost:2000/foo to be processed by the back > end. > > Currently the rel

[users@httpd] Re: Proxying From Directory To App On Port

2015-08-24 Thread Steven Shi
I have looked at and tried using the ProxyPassReverse directive. So the app communicates with the back end over port 2000. Any requests the app makes are sent to localhost:2000/foo to be processed by the back end. Currently the relevant configuration is ProxyPass /app http://localhost:2000 Prox