4
respostas

Página da loja não encontrada

http://ec2-3-84-112-131.compute-1.amazonaws.com:8080/loja The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

4 respostas

Bom dia André, como está a hierarquia de pastas dentro de /var/www ? Descompactou a loja dentro dessa pasta ? Restartou o apache depois de descompactar ?

Boa noite Rodrigo, não tenho esta pasta: ubuntu@ip-172-31-93-50:~$ ls /var/ backups/ crash/ local/ log/ opt/ snap/ tmp/ cache/ lib/ lock/ mail/ run/ spool/

Estou tentando fazer este exercício: https://cursos.alura.com.br/course/introducao-ao-cloud-do-ec2-no-aws/task/27366

Instalei o TomCat e copiei os arquivos lá, tem uma pasta descompactada já.

Desculpa o engano você moveu a loja para /var/lib/tomcat8/webapps ?

Se sim tenta verificar os logs mais recentes dentro de /tomcat8/logs

Boa tarde Rodrigo!

Os arquivos estão dentro da webapps já: ls /var/lib/tomcat8/webapps/ ROOT loja loja.war

Segue o log de quando tento acessar a página da loja: sudo cat localhost_access_log.2019 -10-04.txt

112.87.43.113 - - [04/Oct/2019:01:42:44 +0000] "GET /TP/public/index.php HTTP/1.1" 404 1110
112.87.43.113 - - [04/Oct/2019:01:42:44 +0000] "GET /TP/index.php HTTP/1.1" 404 1099
112.87.43.113 - - [04/Oct/2019:01:42:45 +0000] "GET /thinkphp/html/public/index. php HTTP/1.1" 404 1125
112.87.43.113 - - [04/Oct/2019:01:42:45 +0000] "GET /html/public/index.php HTTP/ 1.1" 404 1112
112.87.43.113 - - [04/Oct/2019:01:42:46 +0000] "GET /public/index.php HTTP/1.1"    404 1103
112.87.43.113 - - [04/Oct/2019:01:42:46 +0000] "GET /TP/html/public/index.php HTTP/1.1" 404 1119
112.87.43.113 - - [04/Oct/2019:01:42:47 +0000] "GET /elrekt.php HTTP/1.1" 404 1093
112.87.43.113 - - [04/Oct/2019:01:42:47 +0000] "GET /index.php HTTP/1.1" 404 1092
112.87.43.113 - - [04/Oct/2019:01:42:48 +0000] "POST /users?page=&size=5 HTTP/1.1" 404 1088
112.87.43.113 - - [04/Oct/2019:01:42:48 +0000] "GET / HTTP/1.1" 200 1896
124.207.119.81 - - [04/Oct/2019:01:54:47 +0000] "GET /TP/public/index.php HTTP/1.1" 404 1110
124.207.119.81 - - [04/Oct/2019:01:54:47 +0000] "GET /TP/index.php HTTP/1.1" 404 1099
124.207.119.81 - - [04/Oct/2019:01:54:48 +0000] "GET /thinkphp/html/public/index.php HTTP/1.1" 404 1125
124.207.119.81 - - [04/Oct/2019:01:54:49 +0000] "GET /html/public/index.php HTTP/1.1" 404 1112
124.207.119.81 - - [04/Oct/2019:01:54:49 +0000] "GET /public/index.php HTTP/1.1" 404 1103
124.207.119.81 - - [04/Oct/2019:01:54:50 +0000] "GET /TP/html/public/index.php HTTP/1.1" 404 1119
124.207.119.81 - - [04/Oct/2019:01:54:50 +0000] "GET /elrekt.php HTTP/1.1" 404 1093
124.207.119.81 - - [04/Oct/2019:01:54:51 +0000] "GET /index.php HTTP/1.1" 404 1092
124.207.119.81 - - [04/Oct/2019:01:54:51 +0000] "POST /users?page=&size=5 HTTP/1.1" 404 1088
124.207.119.81 - - [04/Oct/2019:01:54:52 +0000] "GET / HTTP/1.1" 200 1896
198.108.67.16 - - [04/Oct/2019:03:47:12 +0000] "GET / HTTP/1.1" 200 1896
171.67.70.80 - - [04/Oct/2019:05:34:56 +0000] "GET / HTTP/1.1" 200 1896
194.61.24.30 - - [04/Oct/2019:05:42:09 +0000] "GET / HTTP/1.1" 200 1896
164.52.24.170 - - [04/Oct/2019:15:01:38 +0000] "-" 400 2253
164.52.24.170 - - [04/Oct/2019:15:01:42 +0000] "GET / HTTP/1.1" 200 1896
51.83.15.68 - - [04/Oct/2019:15:03:55 +0000] "GET / HTTP/1.1" 200 1896
184.105.139.67 - - [04/Oct/2019:17:53:36 +0000] "GET / HTTP/1.1" 200 1896
183.129.160.229 - - [04/Oct/2019:19:24:06 +0000] "GET / HTTP/1.1" 200 1896
45.79.164.58 - - [04/Oct/2019:19:36:08 +0000] "GET / HTTP/1.1" 200 1896
189.50.132.57 - - [04/Oct/2019:19:50:57 +0000] "GET / HTTP/1.1" 200 1896
189.50.132.57 - - [04/Oct/2019:19:50:58 +0000] "GET /favicon.ico HTTP/1.1" 404 1094
189.50.132.57 - - [04/Oct/2019:19:51:03 +0000] "GET /loja HTTP/1.1" 404 1087

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software