Pionads Helpfiles: Proxying Using Nginx

Home

Proxying Using Nginx

Proxying using NGINX

To proxy ads via PionAds, you will need to use the proxy_pass configuration. For example, to proxy from http://ads.mydomain.com, the following virtual host will allow PionAds to proxy:

server {

       listen   80; ## listen for ipv4; this line is default and implied
       root /opt/pionads/;
       index index.html;
       # Make site accessible from http://localhost/
       server_name ads.mydomain.com;

   location / {
           proxy_pass http://127.0.0.1:8732/;
           proxy_set_header Host $host;
           proxy_set_header X-Real-IP         $remote_addr;
           proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
   }
}

     

[Please implement an object class template for: core.managers.ResourceManager/resourcemanager_js]