<span style="font-family: Gulim; line-height: 21px">저희가 쓰는 웹페이지 서버가 있는데,</span> <div style="font-family: Gulim; line-height: 21px">웹페이지에서</div> <div style="font-family: Gulim; line-height: 21px"><form ... action = ... .cgi >이런식으로 웹페이지에서 cgi프로그램을 돌려서 하는 구조인데요,</div> <div style="font-family: Gulim; line-height: 21px">cgi파일안에 또다른 cgi를 쓰는 ( 즉 cgi가 생성한 html에 또 다른 cgi가 있습니다) 구조인데,</div> <div style="font-family: Gulim; line-height: 21px">문제는 이런 cgi파일의 경로입니다.</div> <div style="font-family: Gulim; line-height: 21px">이를테면 todayhumor.co.kr/demo/asky.cgi 이런건데요,</div> <div style="font-family: Gulim; line-height: 21px">/demo/ 폴더는 </div> <div style="font-family: Gulim; line-height: 21px">/etc/apache2/ports.conf 내 < *:8000>에 정의되어 있구요, 즉 포트 8000을 사용합니다.</div> <div style="font-family: Gulim; line-height: 21px">그래서 cgi를 실행시키면 page not found가 뜹니다. 왜냐면 todayhumor.co.kr:8000/demo/asky.cgi이렇게 쓰거나 걍 /demo/asky.cgi 이렇게 써야 되는데 <span style="font-size: 9pt; line-height: 1.5">todayhumor.co.kr/demo/asky.cgi</span><span style="font-size: 9pt; line-height: 1.5"> 라서 포트 8000이 아니라 80을 사용해 엉뚱한 데서 찾아 cgi를 결국 못찾기 때문이죠 .</span></div> <div style="font-family: Gulim; line-height: 21px"><span style="font-size: 9pt; line-height: 1.5"><br /></span></div> <div style="font-family: Gulim; line-height: 21px"><span style="font-size: 9pt; line-height: 1.5">cgi 프로그램 자체가 옛날꺼고, 소스파일에 주소를 일일이 다 다시 써서 컴파일 하는것도 무리가 있고 해서 그러는데요,</span></div> <div style="font-family: Gulim; line-height: 21px"><span style="font-size: 9pt; line-height: 1.5">todayhumor.co.kr/ 이런식으로 주소를 쓸때 default으로 8000을 쓰게 하는 방법이 없을까요?</span></div> <div style="font-family: Gulim; line-height: 21px"><span style="font-size: 9pt; line-height: 1.5">물론 apache default port를 8000으로 바꿔주는 방법도 있지만 그렇게 할 경우 다른 페이지가 영향 받지 않을까요?</span></div> <div style="font-family: Gulim; line-height: 21px"><span style="font-size: 9pt; line-height: 1.5">감사합니다.</span></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.