2012.08.24 05:33
nginx.conf 파일의 server 블럭에 아래와 같이 추가합니다.
server {
server_name www.xxx.xxx;
rewrite ^(.*) http://xxx.xxx.xxx$1 permanent;
}
- 아래의 예제는 a.com 이라는 주소로 접속시 http://b.com 으로 redirect 되게끔 하는 내용입니다.
server {
server_name a.com;
rewrite ^(.*) http://b.com$1 permanent;
}
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
3 | 웹브라우저에서 디렉토리 리스트가 보일때 | hostway | 2008.05.14 | 31118 |
2 | 설치된 서버 php에서 지원되는 함수 확인 하기 | hostway | 2008.05.14 | 20204 |
1 | httpd-2.x.x 에서의 SERVER_LIMIT 변경 | hostway | 2008.05.14 | 20922 |