Configuración nginx

Configuración Servidor Proxy en nginx (nginx version: nginx/1.6.2)


 

server {

        listen 80;

        client_max_body_size 50M;

        proxy_read_timeout 150;

        server_name <nombre_dominio.com>;

        location / {

                proxy_pass http://xxx.xxx.xxx.xxx;

                proxy_set_header X-Forwarded-Host $server_name;

                proxy_set_header X-Real-IP $remote_addr;

                add_header P3P ‘CP=”ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV”‘;

        }

      }


 

Verificar Script de Configuración:

nginx -t

Reload/restart nginx

/etc/init.d/nginx reload

/etc/init.d/nginx restart

Your choices are: 000-default dajbog6web

Which site(s) do you want to disable (wildcards ok)?

000-default

Site 000-default disabled.

To activate the new configuration, you need to run:

  service apache2 reload