篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini 带有Homebrew的Mac OS X的Nginx配置,使用启用了站点的目录。相关的知识,希望对你有一定的参考价值。
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
File locations:
* `nginx.conf` to `/usr/local/etc/nginx/`
* `default` and `default-ssl` to `/usr/local/etc/nginx/sites-available`
* `homebrew.mxcl.nginx.plist` to `/Library/LaunchDaemons/`
server {
listen 80;
server_name localhost;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}