<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; Nginx</title>
	<atom:link href="http://www.osyunwei.com/archives/category/config/web/nginx/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>配置Nginx 四层（TCP和UDP）流量转发与七层（HTTP和HTTPS）代理支持SSL证书</title>
		<link>https://www.osyunwei.com/archives/17079.html</link>
		<comments>https://www.osyunwei.com/archives/17079.html#comments</comments>
		<pubDate>Wed, 01 Apr 2026 08:11:52 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=17079</guid>
		<description><![CDATA[需求分析： nginx默认不支持四层转发和七层代理使用SSL证书，必须要开启下面的模块才可以 --with-stream --with-stream_ssl_preread_module --with-stream_ssl_module 操作步骤： 1、在编译安装nginx的时候加上这3个参数 #创建nginx安装目录 mkdir -p /data/server/nginx mkdir -p /data/server/nginx/packages mkdir -p /data/server/nginx/install #安装nginx #解压pcre cd /data/server/nginx/packages tar zxvf pcre2-10.47.tar.gz #解压zlib cd /data/server/nginx/packages tar zxvf zlib-1.3.2.tar.gz #解压openssl cd /data/server/nginx/packages tar zxvf openssl-3.6.1.tar.gz #安装nginx #nginx默认运行账号和组是Linux系统的内置账号和组nobody #创建nginx运行账号和组 cd /data/server/nginx/packages tar zxvf nginx-1.28.3.tar.gz cd nginx-1.28.3 ./configure \ --prefix=/data/server/nginx \ --user=autoops \ --group=autoops \ --without-http_memcached_module [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/17079.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/17079.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下编译安装Nginx</title>
		<link>https://www.osyunwei.com/archives/16822.html</link>
		<comments>https://www.osyunwei.com/archives/16822.html#comments</comments>
		<pubDate>Mon, 19 Jan 2026 09:40:25 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16822</guid>
		<description><![CDATA[操作系统：Rocky Linux 10.x Rocky Linux 10.x系统安装配置图解教程 https://www.osyunwei.com/archives/15874.html 安装包下载： 1、nginx https://nginx.org/download/nginx-1.28.1.tar.gz 2、zlib https://www.zlib.net/zlib-1.3.1.tar.gz 3、pcre2 https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz 4、openssl https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz 安装前准备： 1、防火墙配置 Rocky Linux默认使用的是firewall作为防火墙 firewall-cmd --list-all #显示所有规则（含服务、端口、区域） systemctl status firewalld #检查 firewalld 状态 #开放80 443 端口 firewall-cmd --permanent --add-port=80/tcp firewall-cmd --permanent --add-port=443/tcp firewall-cmd --reload #重新加载防火墙配置 2、关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16822.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16822.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 下添加Nginx 为系统服务</title>
		<link>https://www.osyunwei.com/archives/15414.html</link>
		<comments>https://www.osyunwei.com/archives/15414.html#comments</comments>
		<pubDate>Wed, 05 Mar 2025 10:44:22 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15414</guid>
		<description><![CDATA[需求：把Windows版本的nginx添加为系统服务，并且设置为开机自启动 操作步骤： 1、下载Windows Service Wrapper工具 Winsw (Windows Service Wrapper) 可以将任何可执行文件配置成为能够在Windows系统后台自动启动、停止、重启的服务。 Winsw的工作原理是读取一个XML配置文件（通常命名为winsw.xml），在这个配置文件中定义了服务的名称、可执行文件路径、启动参数、服务描述、日志配置等信息。 通过运行Winsw提供的exe文件（如winsw.exe），根据XML配置来管理对应的应用程序作为服务。 官方网站：https://github.com/winsw/winsw 下载地址：https://github.com/winsw/winsw/releases/download/v2.12.0/WinSW-x64.exe 2、编写XML配置文件 文件名nginx-service.xml，添加下面的内容，特别注意格式缩进 &#60;!-- nginx-service.xml --&#62; &#60;service&#62; &#60;id&#62;nginx&#60;/id&#62; &#60;name&#62;nginx&#60;/name&#62; &#60;description&#62;nginx&#60;/description&#62; &#60;logpath&#62;C:\nginx\server-logs\&#60;/logpath&#62; &#60;logmode&#62;roll&#60;/logmode&#62; &#60;depend&#62;&#60;/depend&#62; &#60;executable&#62;C:\nginx\nginx.exe&#60;/executable&#62; &#60;stopexecutable&#62;C:\nginx\nginx.exe -s stop&#60;/stopexecutable&#62; &#60;/service&#62; nginx安装目录：C:\nginx 上传WinSW-x64.exe和nginx-service.xml到nginx安装目录：C:\nginx下面 修改WinSW-x64.exe名称为nginx-service.exe nginx-service.xml和nginx-service.exe这2名称要一致 3、添加服务 以管理员身份运行命令提示符，切换到C:\nginx下面 .\nginx-service.exe install #注册系统服务，如果系统没有安装.net，根据提示先安装 4、查看系统服务 在Windows下查看系统服务 服务类型：自动 点启动 应用-确定 nginx相关操作命令： 注册系统服务命令 .\nginx-service.exe install 删除已注册的系统服务命令 .\nginx-service.exe uninstall 停止对应的系统服务命令 .\nginx-service.exe stop [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15414.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15414.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx通过nginx-rtmp-module模块搭建流媒体服务器实现直播</title>
		<link>https://www.osyunwei.com/archives/14030.html</link>
		<comments>https://www.osyunwei.com/archives/14030.html#comments</comments>
		<pubDate>Wed, 27 Sep 2023 06:23:48 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14030</guid>
		<description><![CDATA[准备篇 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 RTMP基于TCP， 默认使用端口1935，再开放81端口 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14030.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14030.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下Nginx版本平滑升级与回滚</title>
		<link>https://www.osyunwei.com/archives/12804.html</link>
		<comments>https://www.osyunwei.com/archives/12804.html#comments</comments>
		<pubDate>Wed, 03 Aug 2022 09:45:08 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12804</guid>
		<description><![CDATA[操作系统：CentOS 7.x 准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12804.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12804.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx下配置支持ThinkPHP的pathinfo模式</title>
		<link>https://www.osyunwei.com/archives/9804.html</link>
		<comments>https://www.osyunwei.com/archives/9804.html#comments</comments>
		<pubDate>Mon, 28 Nov 2016 01:18:40 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[pathinfo]]></category>
		<category><![CDATA[ThinkPHP]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9804</guid>
		<description><![CDATA[说明： Nginx目录：/usr/local/nginx/ Nginx配置文件：/usr/local/nginx/nginx.conf 如果站点使用了vhost虚拟主机，并且只需要这一个虚拟主机支持pathinfo的，可以直接打开你的vhost的配置文件进行设置（绿色字为修改代码，蓝色字为增加代码）。 找到类似如下代码： location ~ .*\.(php&#124;php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; #原来的代码 ...... } 编辑配置文件为以下代码： location ~ \.php { #定义变量 $path_info ，用于存放pathinfo信息 set $path_info ""; #定义变量 $real_script_name，用于存放真实地址 set $real_script_name $fastcgi_script_name; #如果地址与引号内的正则表达式匹配 if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { #将文件地址赋值给变量 $real_script_name set $real_script_name $1; #将文件地址后的参数赋值给变量 $path_info set $path_info $2; } #配置fastcgi的一些参数 fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9804.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9804.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下nginx日志每天定时切割</title>
		<link>https://www.osyunwei.com/archives/9787.html</link>
		<comments>https://www.osyunwei.com/archives/9787.html#comments</comments>
		<pubDate>Tue, 08 Nov 2016 01:14:47 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[日志切割]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9787</guid>
		<description><![CDATA[教程目的： 使用Linux系统自带的命令logrotate对Nginx日志进行切割。 Nginx安装目录：/usr/local/nginx/ Nginx日志目录：/usr/local/nginx/logs/、/usr/local/nginx/logs/nginx_logs/ 1、添加nginx日志切割脚本 cd  /etc/logrotate.d  #进入目录 vi   /etc/logrotate.d/nginx   #编辑脚本 /usr/local/nginx/logs/*.log  /usr/local/nginx/logs/nginx_logs/*.log{ su root www missingok dateext notifempty daily rotate 7 create 0640 www adm sharedscripts postrotate if [ -f /usr/local/nginx/logs/nginx.pid ]; then kill -USR1 `cat /usr/local/nginx/logs/nginx.pid` fi endscript } :wq!  #保存退出 chmod +x  /etc/logrotate.d/nginx  ＃添加执行权限 chmod 644 /etc/logrotate.d/nginx  #修改权限 &#160; 2、执行脚本 /usr/sbin/logrotate -vf  [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9787.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9787.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下nginx配置https协议访问</title>
		<link>https://www.osyunwei.com/archives/9442.html</link>
		<comments>https://www.osyunwei.com/archives/9442.html#comments</comments>
		<pubDate>Sat, 30 Apr 2016 15:58:37 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9442</guid>
		<description><![CDATA[一、配置nginx支持https协议访问，需要在编译安装nginx的时候添加相应的模块--with-http_ssl_module 查看nginx编译参数：/usr/local/nginx/sbin/nginx -V 如下所示： configure arguments: --prefix=/usr/local/nginx --with-google_perftools_module --without-http_memcached_module --user=www --group=www --with-http_stub_status_module --with-http_sub_module --with-http_ssl_module --with-http_gzip_static_module --with-openssl=/usr/local/src/openssl-1.0.1h --with-zlib=/usr/local/src/zlib-1.2.8 --with-pcre=/usr/local/src/pcre-8.35 如果没有--with-http_gzip_static_module这个参数，需要重新编辑nginx 二、防火墙开启https协议默认端口443 vi /etc/sysconfig/iptables #编辑防火墙配置文件，添加以下代码 -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT :wq! #保存退出 service iptables restart  #重启防火墙 三、创建https证书 确保机器上安装了openssl和openssl-devel yum install openssl  openssl-devel  #CentOS使用yum命令安装 mkdir   /usr/local/nginx/conf/ssl   #创建证书存放目录 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9442.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9442.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下配置nginx支持.cgi</title>
		<link>https://www.osyunwei.com/archives/7969.html</link>
		<comments>https://www.osyunwei.com/archives/7969.html#comments</comments>
		<pubDate>Fri, 19 Sep 2014 02:31:22 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[cig]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx支持.cig]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7969</guid>
		<description><![CDATA[说明： 操作系统：CentOS 6.x web环境：php+nginx+mysql nginx安装目录：/usr/local/nginx nginx配置文件：/usr/local/nginx/conf/nginx.conf nginx默认站点目录：/usr/local/nginx/html/ 需求：让nginx能够解析.cgi后缀的文件 具体操作： 一、安装perl-fcgi依赖包，通过安装perl-fcgi来支持nginx运行.cgi yum install perl-CPAN perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker 二、安装perl cd /usr/local/src wget http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz #下载安装包，需要提前安装wget工具 tar -xzf perl-5.20.0.tar.gz #解压 cd perl-5.20.0 #进入目录 ./Configure -des -Dprefix=/usr/local/perl #配置 make #编译 make install #安装 mv /usr/bin/perl /usr/bin/perl.bak #备份系统默认的perl ln -s /usr/local/perl/bin/perl /usr/bin/perl #把刚刚安装好的新perl软连接到perl在系统中的默认位置 perl -v #查看perl版本 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链 三、安装perl支持模块 1、安装perl fcgi模块 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7969.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7969.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下定时切割Nginx访问日志并删除指定天数前的日志记录</title>
		<link>https://www.osyunwei.com/archives/7250.html</link>
		<comments>https://www.osyunwei.com/archives/7250.html#comments</comments>
		<pubDate>Mon, 27 Jan 2014 03:15:27 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Nginx日志]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7250</guid>
		<description><![CDATA[说明： 操作系统：CentOS 站点1：bbs.osyunwei.com 站点2：sns.osyunwei.com Nginx安装路径：/usr/local/nginx Nginx配置文件路径：/usr/local/nginx/conf/nginx.conf 站点1配置文件路径：/usr/local/nginx/conf/vhost/bbs.osyunwei.com.conf 站点2配置文件路径：/usr/local/nginx/conf/vhost/sns.osyunwei.com.conf 目的： 1、对站点1和站点2的nginx访问日志按天保存,日志路径为： 站点1：/usr/local/nginx/logs/nginx_logs/bbs_logs 站点2：/usr/local/nginx/logs/nginx_logs/sns_logs 2、只保留30天以内的日志记录 具体操作： 1、创建日志存放路径 mkdir -p  /usr/local/nginx/logs/nginx_logs/bbs_logs mkdir -p  /usr/local/nginx/logs/nginx_logs/sns_logs 2、设置Nginx日志记录格式 vi /usr/local/nginx/conf/nginx.conf  #编辑 log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; 取消日志记录格式前面的注释，在最后添加一行，如下所示： log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"' '$http_host [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7250.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7250.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下WordPress nginx伪静态规则设置</title>
		<link>https://www.osyunwei.com/archives/2023.html</link>
		<comments>https://www.osyunwei.com/archives/2023.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:35:40 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx伪静态]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress nginx]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=2023</guid>
		<description><![CDATA[     1、在相应nginx配置文件的server容器中添加下面的代码      系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 location / { if (-f $request_filename/index.html){                 rewrite (.*) $1/index.html break;         } if (-f $request_filename/index.php){                 rewrite (.*) $1/index.php;         } if (!-f $request_filename){                 rewrite (.*) /index.php;         } } 例如：        vi /usr/local/nginx/conf/nginx.conf    #编辑nginx配置文件 找到server_name localhost;在后面一行添加上面的代码 :wq!   #保存配置文件 service nginx restart    #重启nginx       系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/2023.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/2023.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux系统下禁止nginx空主机头</title>
		<link>https://www.osyunwei.com/archives/803.html</link>
		<comments>https://www.osyunwei.com/archives/803.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 14:50:32 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[禁止nginx空主机头]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=803</guid>
		<description><![CDATA[引言：为了防止域名解析恶意指向，我们需要禁止nginx默认的空主机头，操作如下 vi /usr/local/nginx/conf/nginx.conf    #配置文件 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 找到server，在上面一行添加如下内容： ############################## server {      listen       80 default;      server_name  _;      location / {      root   html;      return 404;                     }      location ~ /.ht {      deny  all;                       }        } ############################## /etc/rc.d/init.d/nginx restart     #重启nginx 这样设置之后，空主机头访问会直接跳转到nginx404错误页面。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/803.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » Linux系统下禁止nginx空主机头<p><a rel="bookmark" href="https://www.osyunwei.com/archives/803.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/803.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux环境下phpwind论坛nginx伪静态规则设置</title>
		<link>https://www.osyunwei.com/archives/641.html</link>
		<comments>https://www.osyunwei.com/archives/641.html#comments</comments>
		<pubDate>Wed, 02 Nov 2011 12:31:49 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx伪静态]]></category>
		<category><![CDATA[phpwind]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=641</guid>
		<description><![CDATA[在相应nginx配置文件的server中，添加如下代码 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 例如： vi /usr/local/nginx/conf/nginx.conf #编辑nginx配置文件 找到下面这行，在server_name localhost;后边一行添加上面的代码  系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 保存配置文件，最后重启nginx即可       service nginx restart 然后在phpwind论坛后台-全局-伪静态-静态目录部署-静态目录部署功能，选择开启。 静态目录：-htm- 静态目录扩展名设置：.html 点击提交即可 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/641.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » Linux环境下phpwind论坛nginx伪静态规则设置<p><a rel="bookmark" href="https://www.osyunwei.com/archives/641.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/641.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux环境下Discuz! X2论坛nginx伪静态规则设置</title>
		<link>https://www.osyunwei.com/archives/596.html</link>
		<comments>https://www.osyunwei.com/archives/596.html#comments</comments>
		<pubDate>Wed, 02 Nov 2011 08:21:55 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Discuz!]]></category>
		<category><![CDATA[nginx伪静态]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=596</guid>
		<description><![CDATA[在相应nginx配置文件的server中，添加如下代码 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 例如： vi /usr/local/nginx/conf/nginx.conf   #编辑nginx配置文件 找到下面这行，在server_name  localhost;后边一行添加上面的代码 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接    保存配置文件，最后重启nginx即可    service nginx restart      然后在Discuz! X2论坛后台-全局-SEO设置-URL静态化，选择你需要开启的页面，点击提交，即可实现静态化。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/596.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » Linux环境下Discuz! X2论坛nginx伪静态规则设置<p><a rel="bookmark" href="https://www.osyunwei.com/archives/596.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/596.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
