본문 바로가기

apache7

Apache httpd.conf 에서 서브 도메인 redirect시 RewriteRule 적용 서브 도메인을 특정 도메인으로 redirect 할 경우 페이지를 찾을수 없는 경우가 발생하곤 하는데 이를 경우 방문자를 잃을수 있습니다. 예를들어 http://www.saybox.net 도메인으로 서비스를 하다가 어느날 http://www.saybox.co.kr 도메인으로 서비스를 이용하게 되어서 redirect / http://www.saybox.co.kr 처럼 redirect 할 경우 발생할 수 있는 문제점이 있습니다. 회원이 즐겨찾기 해둔 URL이 만약 http://www.saybox.co.kr/index.php 였다면 redirect에서 처리를 할 수 없게 됩니다. 그래서 뒤에 어떠한 URL 파라미터가 붙더라도 redirect 되도록 할려면 여러가지 방법이 있는데 그중 한가지가 RewriteEng.. 2011. 7. 27.
리눅스 서버 apache php 오류 Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot restore segment prot after reloc: Permission denied 아파치 서버에 PHP를 이용시 아래와 같은 오류가 발생시 : [root@ ~]# /usr/local/apache/bin/apachectl restart /usr/local/apache/bin/apachectl restart: httpd not running, trying to start Syntax error on line 56 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot restore segment prot after reloc: Permission denied /usr/local/apach.. 2010. 3. 12.
리눅스 sulinux 2.0 + APM 설치후 아파치 실행시 아파치 오류 해결 리눅스 sulinux 2.0을 설치후 APM을 겨우 설치를 마치고 apache를 실행을 했더니 아래와 같은 오류가 발생한다. # /usr/local/apache/bin/apachectl restart httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 이와 같은 오류는 httpd.conf 파일 내용중 아래 ServerName 이라는 부분이 주석(#) 처리 되어 있는데 해당 부분에 주석을 제거하고 도메인 또는 서버의 IP를 입력해 주시면 됩니다. # # ServerName gives the name and port that the server uses to identify itse.. 2009. 9. 4.
리눅스 sulinux 2.0 설치후 Apache make시 오류 발생 처리 IBM 345 서버에 페도라 10을 설치할려고 하니 Raid 카드 인식이 되지 않아 결국 sulinux 2.0 을 설치 하였다. 역시 IBM에서 지원하는 OS라 그런지 쉽게 Raid카드가 인식되어 설치 성공하였다. 문제는 mysql 설치 후 apache를 설치 하는 과정중 make시에 다음과 같은 오류가 나타났다. sockopt.c: In function 'apr_socket_opt_set': sockopt.c:216: error: 'SCTP_NODELAY' undeclared (first use in this function) sockopt.c:216: error: (Each undeclared identifier is reported only once sockopt.c:216: error: for e.. 2009. 9. 4.