Jump to content

Recommended Posts

Posted

Pessoal, o meu VPS é um CentOS 7 com o VestaCP rodando o PHP-FPM + Nginx e Varnish Cache, com PHP 7.

O que acontece é que muitas vezes o endereço, dominio.com.br, tá resolvendo pra dominio.com.br:8084, onde o 8084 é a porta do Nginx, se eu apagar o ":8084" e atualizar ele ica sem a porta sem problemas, mas a primeira vez ele sempre resolve com a porta.

Fiz a instalação e configuração baseada nesses posts:

http://www.servermom.org/varnish-cache-vesta-cp/2564/

http://www.servermom.org/install-varnish-4-lamp-centos-7/1972/

https://portaldohost.com.br/forum/topic/19323-não-consigo-instalar-o-varnish-no-vestacp/

 


Posted

Parece ter conseguido resolver, não capturei mais a porta do Nginx (8084), já testei em alguns navegadores inclusive com o Cache limpo, a solução é introduzir a seguinte linha de instrução nos arquivos /etc/nginx/nginx.conf e no /etc/nginx/conf.d/status.conf

port_in_redirect off;

O que acontece é que o Nginx estava "puxando" para redirecionar para porta dele por padrão.

Fontes:

http://stackoverflow.com/questions/8026763/nginx-port-in-redirect-not-working

http://serverfault.com/questions/227742/prevent-port-change-on-redirect-in-nginx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?

-