Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Erro 502 Bad Gatway Apachebooster

Featured Replies

Postado

Hehehhehe,

 

No segundo caso a zebra é: o Nginx não está conectado ao Varnish. Embora o Varnish aparentemente esteja conectado ao Apache.

 

Resumindo, está assim a coisa:

 

Nginx conectado Apache

Varnish conectado Apache

 

Você precisa por o Nginx para se conectar ao Varnish. Nesse caso, tem que mudar a porta de conexão do Nginx...


Postado
  • Autor

Joaopaulo,entao preciso apontar o nginxcp para a porta 8080?

qual arquivo devo editar pra fazer isso?


Postado
  • Autor

Não sei se está certo,mas fiz uma alteracao no arquivo createvhosts.py (/usr/local/cpanel/scripts)

mudei o que estava em 8081 para 8080 que é a porta do varnish

Depois testei ssh testei curl -I http://meusite.com e www.isvarnishworking.com

 

aparentemente o varnish está rodando 

HTTP/1.1 301 Moved Permanently
Server: nginx admin
Date: Sun, 16 Mar 2014 04:30:32 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.4.26
X-Pingback: http://www.meusite.com/xmlrpc.php
Location: http://www.meusite.com/
Accept-Ranges: bytes
X-Varnish: 1928524033
Age: 0
Via: 1.1 varnish

isso esta correto?


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.