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.
![Interview with a Pornhub Web Developer]()
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...
![Create a Sheen Logo Effect with CSS]()
I was inspired when I first saw Addy Osmani's original ShineTime blog post. The hover sheen effect is simple but awesome. When I started my blog redesign, I really wanted to use a sheen effect with my logo. Using two HTML elements and...
![Simple Image Lazy Load and Fade]()
One of the quickest and easiest website performance optimizations is decreasing image loading. That means a variety of things, including minifying images with tools like ImageOptim and TinyPNG, using data URIs and sprites, and lazy loading images. It's a bit jarring when you're lazy loading images and they just...
![Display Images as Grayscale with CSS Filters]()
CSS filters aren't yet widely supported but they are indeed impressive and a modern need for web imagery. CSS filters allow you to modify the display of images in a variety of ways, one of those ways being displaying images as grayscale.
Doing so requires the...
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!