/etc/nginx/nginx.conf
を以下のように編集する。
pid /var/run/nginx.pid; events { worker_connections 3; } http { server { root /html; } }
nginxを再起動する。
$ nginx -s stop && nginx
このとき、 http://localhost
へアクセスすると /html
以下のファイルにアクセスできていることが分かる。
/etc/nginx/nginx.conf
を以下のように編集する。
pid /var/run/nginx.pid; events { worker_connections 3; } http { server { root /html; } }
nginxを再起動する。
$ nginx -s stop && nginx
このとき、 http://localhost
へアクセスすると /html
以下のファイルにアクセスできていることが分かる。