<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>BB的WEB开发笔记</title>
		<link>http://www.hzw513.com/</link>
		<description>web开发 Django开发交流群:19525555</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Sun, 05 Sep 2010 05:56:16 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://www.hzw513.com/show-47-1.html</guid>
			<title>(13)Permission denied: make_sock: could not bind to address [::]:80</title>
			<author>BB</author>
			<description><![CDATA[<p><strong>(13)Permission denied: make_sock: could not bind to address [::]:80<br />
<br />
</strong><font color="#ff0000">1024内的端口服务之后root才能启动</font></p>
<p>所以 必须加 sudo</p>]]></description>
			<link>http://www.hzw513.com/show-47-1.html</link>
			<category domain="http://www.hzw513.com/category-2-1.html">Apache</category>
			<pubDate>2010-02-01 18:29</pubDate>
		</item>
		<item>
			<guid>http://www.hzw513.com/show-31-1.html</guid>
			<title>mod_wsgi 配置</title>
			<author>BB</author>
			<description><![CDATA[<p>除了mod_python，Python Web还有另外一选择－－mod_wsgi!</p>
<p>今天在Ubuntu下配置了一下，做个笔记！</p><br /><br /><a href="http://www.hzw513.com/show-31-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.hzw513.com/show-31-1.html</link>
			<category domain="http://www.hzw513.com/category-2-1.html">Apache</category>
			<pubDate>2009-10-25 12:31</pubDate>
		</item>
		<item>
			<guid>http://www.hzw513.com/show-10-1.html</guid>
			<title>Forbidden You don't have permission to access / on this server.</title>
			<author>BB</author>
			<description><![CDATA[<p><strong>Forbidden You don't have permission to access / on this server. </strong>解决方法</p><br /><br /><a href="http://www.hzw513.com/show-10-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.hzw513.com/show-10-1.html</link>
			<category domain="http://www.hzw513.com/category-2-1.html">Apache</category>
			<pubDate>2009-06-06 10:15</pubDate>
		</item>
		<item>
			<guid>http://www.hzw513.com/show-2-1.html</guid>
			<title>Apache自动添加www</title>
			<author>BB</author>
			<description><![CDATA[<p>使用301重定向简单应用</p><br /><br /><a href="http://www.hzw513.com/show-2-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.hzw513.com/show-2-1.html</link>
			<category domain="http://www.hzw513.com/category-2-1.html">Apache</category>
			<pubDate>2009-05-23 17:39</pubDate>
		</item>
		<item>
			<guid>http://www.hzw513.com/show-3-1.html</guid>
			<title>Windows下Apache添加虚拟主机</title>
			<author>BB</author>
			<description><![CDATA[<p>基于IP地址的添加</p>
<p>环境:&nbsp; winxp + apache2.2</p>
<p>涉及文件:</p>
<ol>
    <li>C:\WINDOWS\system32\drivers\etc&nbsp; hosts文件</li>
    <li>httpd.conf 文件</li>
</ol>
<p>&nbsp;先修改 hosts文件 ,在后面添加</p>
<p><br />
<span style="color: rgb(0, 0, 255);">127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www.bb.com<br />
127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test1.bb.com<br />
127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test2.bb.com</span></p>
<p>先建立文件结构 :</p>
<p>然后再修改httpd.conf文件</p>
<p><span style="color: rgb(0, 0, 255);">#添加一个虚拟主机的目录 <br />
&lt;Directory &quot;D:/webserver-vhost/home&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks Includes ExecCGI<br />
&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br />
&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br />
&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br />
&lt;/Directory&gt;</span></p>
<p><span style="color: rgb(0, 0, 255);">#添加虚拟主机</span></p>
<p><span style="color: rgb(0, 0, 255);">NameVirtualHost 127.0.0.1<br />
&lt;VirtualHost 127.0.0.1&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot D:/webserver-vhost/home/test1<br />
&nbsp;&nbsp;&nbsp;&nbsp; ServerName www.bb.com<br />
&lt;/VirtualHost&gt;</span></p>
<p><span style="color: rgb(0, 0, 255);">&lt;VirtualHost 127.0.0.1&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot D:/webserver-vhost/home/test1<br />
&nbsp;&nbsp;&nbsp;&nbsp; ServerName test1.bb.com<br />
&lt;/VirtualHost&gt;</span></p>
<p><span style="color: rgb(0, 0, 255);">&lt;VirtualHost 127.0.0.1&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot D:/webserver-vhost/home/test2<br />
&nbsp;&nbsp;&nbsp;&nbsp; ServerName test2.bb.com<br />
&lt;/VirtualHost&gt;</span></p>
<p>以上设置在本机测试,运行正常</p>]]></description>
			<link>http://www.hzw513.com/show-3-1.html</link>
			<category domain="http://www.hzw513.com/category-2-1.html">Apache</category>
			<pubDate>2009-04-08 16:01</pubDate>
		</item>
	</channel>
</rss>
