「nginx バーチャルホスト」の編集履歴(バックアップ)一覧に戻る
<head> <title>domain1.com</title> </head> <body> <h1>domain1.com</h1> </body>
listen 80; server_name www.domain1.com;
access_log /home/demo/public_html/domain1.com/log/access.log; error_log /home/demo/public_html/domain1.com/log/error.log;
location / {
root /home/demo/public_html/domain1.com/public/; index index.html;
}
}
listen 80; server_name domain1.com;
access_log /home/demo/public_html/domain1.com/log/access.log; error_log /home/demo/public_html/domain1.com/log/error.log;
location / {
root /home/demo/public_html/domain1.com/public/; index index.html;
}
}