Videocache is no longer in development.

Apache on another port? [Resolved]

by Anonymous on 13 Jan 2009

I have an iptables entry to redirect 80 to 3128,

If I have apache on port 81 (so it doesn't loop continually)

Where would I set this for videocache?

2 Answers

by nvrpunk on 14 Jan 2009

I solved this myself by adding an iptables entry with a -i eth0 redirect to port 3128.

sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j REDIRECT --to-port 3128

Basically, all incoming traffic for port 80 across that interface and internal traffic to the proxy itself goes to the correct port. This way apache can still run on port 80 as it needs to.

Also, the cache_host in the videocache.cfg had to be changed to the real outside world IP from

Noticed this during testing on Firefox when I saw the url_store_rewrite push the address to the test pc. Obviously, it can't pull from itself since it's not a proxy.

Hope this helps anyone trying to get it working correctly.

by Rafael Guedes on 16 Jan 2009

As its rule of iptables, is correct. The apache can continue listening on port 81 .. I have the same situation, you need only add a line in the apache configuration file:

Listen 81
Listen 80

... and give a reload in the service.

In videocache.cfg cache_host must be the IP of your internal network. Test and post their results. Greetings