메뉴 건너뛰기

리눅스 관련 모음

본문시작

설치관련
2013.06.22 15:58

rewrite 도메인 포워딩

조회 수 15155 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 

도메인 포워딩 Rewrite 설정법



서버에 여러개의 도메인이 설정되어 있을 경우 대표도메인을 사용하고 싶은 경우가 있습니다. 

이때 Rewrite 엔진을 이용해서 도메인 포워딩을 해주면 됩니다.

아래는  local1.localdomain  을  local2.localdomain 로 변경해주는 예제입니다.

 

http://local1.localdomain/login.php -> http://local2.localdomain/login.php

 

#httpd.conf 설정 내용

RewriteEngine on

RewriteCond %{HTTP_HOST} ^local1\.localdomain [NC]

RewriteRule ^(.*)$ http://local2.localdomain$1 [L,R]

   

  1. PHP CodeSniffer 코딩검사

    Date2013.01.14 Category설치관련 By햇빛소년 Views0
    Read More
  2. modcurity 에러메세지

    Date2013.01.17 Category에러해결 By햇빛소년 Views0
    Read More
  3. .htaccess 이용 스팸 IP 차단

    Date2013.01.17 Category설치관련 By햇빛소년 Views25201
    Read More
  4. apache2.x.x 컴파일 에러 해결 - /usr/local/lib/liblua.a: could not read symbols: Bad value

    Date2013.01.19 Category에러해결 By햇빛소년 Views0
    Read More
  5. pcre최신버전 소스설치 후 modsecurity-apache 컴파일시 에러

    Date2013.01.19 Category에러해결 By햇빛소년 Views76667
    Read More
  6. Luajit 다운로드 및 설치

    Date2013.01.19 Category설치관련 By햇빛소년 Views22842
    Read More
  7. ZendGuardLoader.so: undefined symbol: compiler_globals

    Date2013.01.19 Category에러해결 By햇빛소년 Views25866
    Read More
  8. rndc-confgen — rndc key generation tool

    Date2013.05.31 Category설치관련 By햇빛소년 Views17372
    Read More
  9. TIFF 설피시 /usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant 에러

    Date2013.06.04 Category에러해결 By햇빛소년 Views17422
    Read More
  10. dnssec-keygen 사용법 및 구축과 검증

    Date2013.06.07 Category설치관련 By햇빛소년 Views24036
    Read More
  11. mc(미드나잇 커맨드) 종료시 처음 PWD로 바뀌는 문제 해결

    Date2013.06.09 Category에러해결 By햇빛소년 Views17544
    Read More
  12. named 에러 (/var/log/massages) 가 있을 때 해결 방법

    Date2013.06.12 Category에러해결 By햇빛소년 Views33936
    Read More
  13. BIND 9: "Warning: 'empty-zones-enable/disable-empty-zone' not set: disabling RFC 1918 empty zones"

    Date2013.06.13 Category에러해결 By햇빛소년 Views19742
    Read More
  14. httpd-2.4.4 httpd.conf 설정 옵션 변경.

    Date2013.06.13 Category설치관련 By햇빛소년 Views14021
    Read More
  15. php-5.4.16 컴파일시 checking for db4 major version... Header contains different version 에러

    Date2013.06.18 Category에러해결 By햇빛소년 Views19302
    Read More
  16. phpmyadmin 4.0 로그인시 에러..

    Date2013.06.18 Category에러해결 By햇빛소년 Views59735
    Read More
  17. php.ini설정 에러 모음.

    Date2013.06.18 Category에러해결 By햇빛소년 Views16248
    Read More
  18. /etc/init.d/proftpd 실행 스크립트

    Date2013.06.19 Category설치관련 By햇빛소년 Views0
    Read More
  19. [MySQL] Incorrect integer value: '' for column '컬럼명' 오류 발생시

    Date2013.06.19 Category에러해결 By햇빛소년 Views17452
    Read More
  20. rewrite 도메인 포워딩

    Date2013.06.22 Category설치관련 By햇빛소년 Views15155
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10