## Nginx:`1.10.x` 先看看阿里云提供的版本: ``` # yum list nginx …… nginx.x86_64 1.10.1-1.el6 ``` 还行,就它吧: ``` # yum install nginx …… # nginx -v nginx version: nginx/1.10.1 ``` ## Gilab-Nginx 如果使用`Gitlab`,`Nginx`不用单独安装,只需要配置好即可。 ### 默认配置 ``` # cd /var/opt/gitlab/nginx/conf ``` ### 新增配置 在`gitlab.rb`里面增加包含目录 ``` # vim /etc/gitlab/gitlab.rb …… ['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;" ``` To: ``` ['custom_nginx_config'] = "include /etc/nginx/conf.d/*.conf;" ``` 然后重启: ``` # gitlab-ctl reconfigure ```