Voting/Rating issues using Nginx Proxy (Tube Script V6)
Posted by Konrad Piwowar, Last modified by Konrad Piwowar on 01 November 2018 02:06 PM

* Please Note *
This article is informational only - we do not provide free technical support for nginx - only for our software. If you would like us to set this up for you, we can do so but will charge for the labour.

If you are using nginx as a proxy in front of apache (using the nginx proxy_pass functionality), you will have an issue with voting on content (it will always say you have already voted) because the IP that comes through to apache will always be To circumvent this, you must do the following:

In Nginx configuration:
Under your proxy_pass line, add:proxy_set_header REMOTE_ADDR $remote_addr;

In admin/config.php:
At the top just after <?, add:

This will overwrite the with the users real ip, thus allowing them to vote.

(1 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).