下面是本人测试的nginx配置文件,没做注释,不懂的可看你nginx参数就行(包括单个和集群)
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
upstream test {
server 127.0.0.1:80;
}
upst

本文分享了作者使用nginx进行反向代理配置的经验,以实现镜像网站的功能。文中提供了一个未加注释的配置文件示例,适用于单个或集群设置,适合对nginx参数有一定了解的读者参考。
最低0.47元/天 解锁文章
348

被折叠的 条评论
为什么被折叠?



