본문 바로가기

프로그래밍/Linux

해외 VPS 리눅스 서브도메인 설정하기
























리눅스 우분투 서브도메인 설정하기
경로
/etc/apache2/sites-available
파일 - 000-default.conf <- 수정
새로 추가할 도메인 설정


<VirtualHost *:80>
        ServerAdmin webmaster@localhost           
        ServerName sub.domain.com                             # 서브도메인 입력
        ServerAlias www.sub.domain.com                        # 서브도메인 입력
        DocumentRoot /var/www/html/sub.domain.com     # 서브도메인 폴더
</VirtualHost>
 


 경로
/etc/apache2
파일 - apache2.conf

추가

<Directory /var/www/sub.domain.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

총파일 두개 수정해야함