Redirect

vi /usr/local/apache/conf/extra/httpd-vhosts.conf

– 설정 전

DocumentRoot “/home/master/xe”
ServerName msnote.co.kr
ErrorLog “/home/master/xe/msnote.co.kr-error_log”
CustomLog “/home/master/xe/msnote-access_log” common

– 설정후

# DocumentRoot “/home/master/xe”
ServerName msnote.co.kr
RedirectMatch /(.*)$ http://리다이렉트시킬도메인/$1
ErrorLog “/home/master/xe/msnote.co.kr-error_log”
CustomLog “/home/master/xe/msnote-access_log” common

Leave your Comment

Your email address will not be published. Required fields are marked *