Apache2 + Problemas acesso [RESOLVIDO]

25. Re: Apache2 + Problemas acesso [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 12/11/2010 - 09:38h

Ok... outra forma então via texto:

# telnet localhost 80

Se conectar, vai ficar em branco. Dae vc digita:

GET /index.htm HTTP/1.1

Se vier a página q vc quer, significa q tá funcionando.


  


26. Re: Apache2 + Problemas acesso [RESOLVIDO]

Luis Eduardo Vilella
luivilella

(usa Debian)

Enviado em 12/11/2010 - 09:47h

debianServer:~# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.htm HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Fri, 12 Nov 2010 11:47:53 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
Vary: Accept-Encoding
Content-Length: 338
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at 127.0.1.1 Port 80</address>
</body></html>
Connection closed by foreign host.

Tinha dado uma pesquisada e falaram do host para testar dominios apache e talz.


debianServer:~# host -a localhost
Trying "localhost.search"
Trying "localhost"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5100
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;localhost. IN ANY

;; ANSWER SECTION:
localhost. 604800 IN SOA localhost. root.localhost. 2 604800 86400 2419200 604800
localhost. 604800 IN NS localhost.
localhost. 604800 IN A 127.0.0.1
localhost. 604800 IN AAAA ::1

;; ADDITIONAL SECTION:
localhost. 604800 IN A 127.0.0.1
localhost. 604800 IN AAAA ::1

Received 170 bytes from 127.0.0.1#53 in 0 ms



27. Re: Apache2 + Problemas acesso [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 12/11/2010 - 10:14h

Tente desta forma:

GET / HTTP/1.0

Acho q pode funcionar melhor. Ou vc pode colocar assim tb:

GET /msn-proxy/ HTTP/1.0


28. Re: Apache2 + Problemas acesso [RESOLVIDO]

Luis Eduardo Vilella
luivilella

(usa Debian)

Enviado em 12/11/2010 - 14:28h

debianServer:~# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.htm HTTP/1.0

HTTP/1.1 404 Not Found
Date: Fri, 12 Nov 2010 16:27:52 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
Vary: Accept-Encoding
Content-Length: 319
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /index.htm was not found on this server.</p>
<hr>
<address>Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at 1 27.0.1.1 Port 80</address>
</body></html>
Connection closed by foreign host.


debianServer:~# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /msn-proxy/ HTTP/1.0

HTTP/1.1 401 Authorization Required
Date: Fri, 12 Nov 2010 16:29:09 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
WWW-Authenticate: Basic realm="Acesso restrito!"
Vary: Accept-Encoding
Content-Length: 513
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at 127.0.1.1 Port 80</address>
</body></html>
Connection closed by foreign host.
debianServer:~#




29. Re: Apache2 + Problemas acesso [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 12/11/2010 - 15:20h

O q eu posso dizer com esses resultados é q o seu apache tá funcionando normalmente. Agora temos q v a sua rede. Existe algum bloqueio nesse note seu (iptables, /etc/hosts.deny...)?

# iptables -nL
# iptables -t nat -nL
# cat /etc/hosts.deny


30. Re: Apache2 + Problemas acesso [RESOLVIDO]

Luis Eduardo Vilella
luivilella

(usa Debian)

Enviado em 21/11/2010 - 19:56h

Renato testei aqui quando coloco as configuracoes de proxy no navegador, para o apache ai tiro as configuracoes funciona!!
O que sera??? nao tenho tenhuma regra de bloqueio no squid.
Se sabe o que pode ser?????



  
01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts