multi domain1 nginx default.conf 1. vi /etc/nginx/nginx.conf # # The default server # server { listen 80; server_name test1.test.com; root /opt/www/test1; location / { try_files $uri $uri/ =404; } } ############################################# server { listen 80; server_name test2.test.com; root /opt/www/test2; location / { try_files $uri $uri/ =404; } } ############################################ server { listen 80; server_n.. 2019. 4. 10. 이전 1 다음 반응형