본문 바로가기

반응형

전체 글

(28)
[Apache] RewriteRule 1-1) rewrite 설정 rewrite 모듈 사용하기 위한 apache 컴파일 옵션 : --enable-rewrite Configure 실행시에 --enable-rewrite 만 추가하면 apache 에서 rewrite 모듈을 사용할수 있게 됨.. > ./configure prefix=/usr/local/apache2 --enable-rewrite > make > make install 1-2) rewirte 설정 범위 : Server Config, Virtual Host, Directory, .htaccess 에 설정가능 (apache 서버 전체의 Global 설정과 특정 가상호스트에만 적용할수 있고 특정 디렉토리에만 적용시킬수도 있다.) 2) rewrite 모듈 지시자 RewriteEngine :..
[JS] alert message function alert_msg($msg,$after_url=""){  $msg=preg_replace("/\"/","'",$msg);  echo " alert(\"$msg\"); ";  if($after_url){    echo " location.href='$after_url'; ";  }else{    echo " history.go(-1); ";  }  echo "";  exit;}?>$msg : 출력 alert 메세지$after_url : 메세지 출력후 이동할 url (없을 경우 이전 페이지로..)
[Apache] httpd.conf ServerRoot "/usr/local/httpd" : 아파치 서버가 설치된 디렉토리 지정 Listen 80 : 아파치 서버가 사용할 포트번호 지정 LoadModule php5_module modules/libphp5.so : DSO 방식으로 만들어진 모듈의 기능을 사용하기 위해서는 그 기능에 관련된 지시자를 사용하기에 앞서 알맞게 `LoadModule' 지시자로 모듈을 지시해주어야 한다. 이것은php의 모듈을 불러온다는 의미이다 User nobody Group nobody : 아파치 서버가 웹 요청을 받았을때 유저 nobody 그룹nobody 의 권한으로 실행한다는 의미이다. root로 설정해서는 절대 안된다 ServerAdmin you@example.com : 아파치 서버가 구동되면서 생긴 각종 로..
[Reference PDF] Prototype 1.5.1 Prototype 1.5.1 - The Complete API Reference (Sam Stephenson and the Prototype Team 저) Prototype 공부 시작했습니다. 레퍼런스 PDF 파일 첨부합니다.

반응형