Nginx 2 급 하위 도 메 인 이름 완벽 프로젝트

187 단어
if ( $host ~* (\b(?!www\b)\w+)\.\w+\.\w+ ) {
    set $subdomain /$1;
}
location / {
    root /home/wangyan/public_html$subdomain;
    index index.html index.php;
}

좋은 웹페이지 즐겨찾기