You are hereForums / Support / Apache on another port? [Resolved]

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

Apache on another port? [Resolved]


2 replies [Last post]
Offline
Joined: Jan 13 2009
Apache on another port? [Resolved]
Printer-friendly versionSend to friend

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?

Offline
Joined: Jan 13 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 127.0.0.1

Noticed this during testing on Firefox when I saw the url_store_rewrite push the 127.0.0.1 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.

Rafael Guedes's picture
Offline
Joined: Jan 9 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

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 101 guests online.