Simple Apache Proxying
I was recently working with Apache and a service running on Kris Zyp's Persevere project (which is beyond awesome). Persevere was pushing messages to my application which was running on Apache; the problem was that Persevere and Apache were running on different ports which technically made them cross-domain. In order to make the server believe the web service was on the same domain/port, I needed to use Apache proxying. I opened the conf/httpd.conf file and added the following magic to make that possible:
# Proxy requests to /data to persevere
ProxyPass /service http://localhost:8080/Status
ProxyPassReverse /service/ http://localhost:8080/Status
RewriteRule ^/service$ http://localhost:8080/Status$1 [P,L]
Now any reference to the directory "/Status" is proxied to the other port to receive the data! Apache proxying is a huge boost to your web application if you can trust the other domain/port.
Regardless of your stance on pornography, it would be impossible to deny the massive impact the adult website industry has had on pushing the web forward. From pushing the browser's video limits to pushing ads through WebSocket so ad blockers don't detect them, you have...
One major problem with creating UI components with the MooTools JavaScript framework is that there isn't a great way of allowing customization of template and ease of node creation. As of today, there are two ways of creating:
new Element Madness
The first way to create UI-driven...
One of the most popular code snippets of posted on my blog has been the scrolling "Go To Top" link snippet. The premise of the snippet is simple: once the user scrolls an element (usually the BODY element) past a given threshold, a "Go...
I showed you how to create a PHP calendar last week. The post was very popular so I wanted to follow it up with another post about how you can add controls to the calendar. After all, you don't want your...
Not getting…. :-(
I don’t remember for sure, but off the top of my head don’t you have to enable the proxy module as well?
Good call Alan, you absolutely do.
That’s one of the best uses for apache proxying I’ve seen! Awesome!