본문 바로가기

아파치

[Apache] 디렉토리의 존재를 알려주는 404error 참고 : 헐랭이님의 블로그 For example, if you request http://www.example.com/foo/secret (secret is the directory) Web/WAS server return '302 Moved temporarily', and redirect you to http://www.example.com/foo/secret/ (Can you see the last '/' ?) Because directory indexing is prohibited with 404, 404 Not found is returned. To make a long story short, When you met this situation, http://www.example.com/foo/se.. 더보기
아파치 mod_perl 설치 참고 : http://www.cyworld.com/ruo91/3985670 # cd /usr/local # wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz # tar xzvf mod_perl-2.0-current.tar.gz # cd mod_perl-2.0.4 # perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs # make ; make install ** mod_perl 모듈 추가 # vi /usr/local/apache2/conf/httpd.conf LoadModule perl_module modules/mod_perl.so ** 별도의 디렉토리 설정(추가) Options.. 더보기
[설정] Options ExecCGI is off in this directory - 403에러 Env : Apache(2.2.11) / Perl(5.10.0) / Tomcat(6.0.18) / PHP(5.2.9) 문제 : JSP용으로 사용하던 서버에 CGI파일을 작성하고 웹에서 로딩시 403 - Forbidden 에러와 Apache 에러로그에 ... Options ExecCGI is off in this directory : ... 와 같은 로그를 남기며 페이지 출력 불가. 해결 : httpd.conf 파일 설정 변경 - 핸들러에 cgi가 추가 되어있나 확인 : AddHandler cgi-script .cgi .sh .pl - 디렉토리 옵션 변경 Options FollowSymLinks -> Options Indexes Includes FollowSymLinks MultiViews ExecCGI 더보기