ftp 서버에 nodejs 설치 하고 express 설치하고 여기까지는 되는뎅,,
그담에
http://123.111.231.13 이게 저희 FTP서버 IP 인데
이걸로 접속하면
index.html 화면만 보여주는데
그럼
호출할때
app.get("/pet", function (요청, 응답) {
응답.send("펫용품 사시오");
});
이걸로 보려면
http://123.111.231.13/pet 했는데
Not Found
The requested URL /pet was not found on this server.
Apache/2.2.15 (CentOS) Server at 123.111.231.13 Port 80
이렇게 나옵니다.
app.listen(8080, function () {
console.log("listening on 8080");
});
이걸로는 안되는 거죠? ㅠㅠ
아니면 index.html 에서 뭔가 바꿔야 하나요?
도움 부탁드립니다.!!