公司Nginx仓库配置文件
root@178hub:~# cat /usr/local/nginx/conf/nginx.conf|grep -v "#"
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
include conf.d/*.conf;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
# 显示目录
autoindex on;
location / {
index index.html index.htm;
root /data/apt/;
}
location /init {
index index.html index.htm;
root /data/git_data/conf/;
}
location /prod {
index index.html index.htm;
root /data/git_data/conf/;
}
location /soft {
index index.html index.htm;
root /data/soft;
}
location /temp {
index index.html index.htm;
root /data/temp;
}
access_log /var/log/nginx/localhost.log;
}
}