<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post/3915/</link>
<title><![CDATA[nginx整合SVN，apache修改为8080,代理apache的8080端口]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 31 Dec 2010 08:03:50 +0000</pubDate> 
<guid>http://jackxiang.com/post/3915/</guid> 
<description>
<![CDATA[ 
	Nginx虽然目前使用比较多，但还没有提供整合SVN的功能。<br/>还只能是Apache配置SVN,Nginx作为代理。<br/><br/>nginx.conf设置:<br/><div class="code">&nbsp;&nbsp;&nbsp;&nbsp;server &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server_name ppsea.gicp.net;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location / &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp; html;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index index.html index.htm;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://192.168.1.10:82;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;</div><br/>apache使用的82端口，整合了SVN。<br/>http://blog.ntsky.com/nginx-svn.html<br/>我的使用方法：<br/><div class="code">server &#123;<br/>listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br/>server_name svn.qq.com; <br/>location / &#123; <br/>&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp; /usr/local/tads/htdocs/svn;<br/>&nbsp;&nbsp;&nbsp;&nbsp;index index.html index.htm;<br/>&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://172.25.39.11*:8080;<br/>&#125;&nbsp;&nbsp; <br/>&#125;</div><br/><br/><br/><textarea name="code" class="php" rows="15" cols="100">
server &#123;
&nbsp;&nbsp;listen 80;
&nbsp;&nbsp;server_name svn.jackxiang.com;

&nbsp;&nbsp;location / &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_set_header Host $host;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_set_header X-Real-IP $remote_addr;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_set_header X-Forwarded-Proto https;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass http://116.255.139.240:8080;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&#125;
</textarea><br/><br/>一句简单命令重启nginx:<br/><br/>最近我的多个VPS经常出现502错误，经常需要重启nginx，但网上的很多教程都需要繁琐的启动脚本，远不如apache的重启命令那么简单。<br/>但研究了一下nginx帮助后发现，有-s参数可对nginx服务进行管理：<br/># /usr/local/nginx/sbin/nginx -h<br/>nginx version: nginx/0.7.63<br/>Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]<br/><br/>Options:<br/>-?,-h : this help<br/>-v : show version and exit<br/>-V : show version and configure options then exit<br/>-t : test configuration and exit<br/><strong>-s signal : send signal to a master process: stop, quit, reopen, reload</strong>-p prefix : set prefix path (default: /usr/local/nginx/)<br/>-c filename : set configuration file (default: conf/nginx.conf)<br/>-g directives : set global directives out of configuration file<br/><br/>于是我执行<br/># /usr/local/nginx/sbin/nginx -s&nbsp;&nbsp;reload<br/>nginx已经重启成功。<br/><br/><br/><br/>apache 设置虚拟机为8080时候需要修改的地方：<br/>1.httpd.conf<br/>Listen 8080<br/>2.&lt;VirtualHost *:8080&gt;<br/> ServerAdmin jackxiang@tencent.com<br/><br/>1,2必须都要为：8080，否则没法访问8080端口，亲自试了试。<br/><br/>首先，调试通过apache的8080，然后再调试通过nginx的代理即可！！！<br/><br/><br/>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/3915/#blogcomment63980</link>
<title><![CDATA[[评论] nginx整合SVN，apache修改为8080,代理apache的8080端口]]></title> 
<author>三亚水下婚纱 &lt;532412435@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 09 Mar 2016 09:03:37 +0000</pubDate> 
<guid>http://jackxiang.com/post/3915/#blogcomment63980</guid> 
<description>
<![CDATA[ 
	杨柳青青江水平，闻郎江上踏歌声。
]]>
</description>
</item>
</channel>
</rss>