﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-两极人生，八度空间-随笔分类-Website Technology</title><link>http://www.cnitblog.com/wildon/category/4809.html</link><description>Fight for my CISSP and PMP</description><language>zh-cn</language><lastBuildDate>Thu, 29 Sep 2011 12:06:12 GMT</lastBuildDate><pubDate>Thu, 29 Sep 2011 12:06:12 GMT</pubDate><ttl>60</ttl><item><title>MOSS webpart permission configuration details</title><link>http://www.cnitblog.com/wildon/archive/2008/01/17/38979.html</link><dc:creator>Jerome</dc:creator><author>Jerome</author><pubDate>Thu, 17 Jan 2008 07:36:00 GMT</pubDate><guid>http://www.cnitblog.com/wildon/archive/2008/01/17/38979.html</guid><wfw:comment>http://www.cnitblog.com/wildon/comments/38979.html</wfw:comment><comments>http://www.cnitblog.com/wildon/archive/2008/01/17/38979.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/wildon/comments/commentRss/38979.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/wildon/services/trackbacks/38979.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: The easiest way to allow Web Parts that access the SharePoint object model to work is to change the trust level from Minimal to Medium by changing this line in the web.config at the application root of your virtual server usually c:\inetpub\wwwroot<br>Original line<br><br> &nbsp;&nbsp;<a href='http://www.cnitblog.com/wildon/archive/2008/01/17/38979.html'>阅读全文</a><img src ="http://www.cnitblog.com/wildon/aggbug/38979.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/wildon/" target="_blank">Jerome</a> 2008-01-17 15:36 <a href="http://www.cnitblog.com/wildon/archive/2008/01/17/38979.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>多个web站点共享一个外部IP的实现方法</title><link>http://www.cnitblog.com/wildon/archive/2007/02/06/22728.html</link><dc:creator>Jerome</dc:creator><author>Jerome</author><pubDate>Tue, 06 Feb 2007 05:31:00 GMT</pubDate><guid>http://www.cnitblog.com/wildon/archive/2007/02/06/22728.html</guid><wfw:comment>http://www.cnitblog.com/wildon/comments/22728.html</wfw:comment><comments>http://www.cnitblog.com/wildon/archive/2007/02/06/22728.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cnitblog.com/wildon/comments/commentRss/22728.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/wildon/services/trackbacks/22728.html</trackback:ping><description><![CDATA[
		<font color="#3300cc">       记得不久以前，我在面试的时候，有考官问我这个问题。当时我只回答了，在Linux下可以通过虚拟主机的方法解决。然而他问在windows平台下如何实现时。说实在话，我的确不太清楚。经查找资料，现将两种平台上解决这个问题的方法详述如下：<br />（一）在windows平台下，IIS 5.0能很好地支持一个IP地址对应多个独立的域名，这可以通过两种方法来实现：<br />        ⑴设不同的TCP端口号:你需要分别将各个Web站点的“Web站点”选项中的“TCP端口”指向不同的端口号，再将“主目录”中的路径选不同的目录即可。调用格式如“http://www.abc.com:99”。 ]<br />        ⑵设不同的主机头名:你需要分别将各个Web站点的“Web站点→高级→编辑”中的“主机头名”一项填入不同的域名(如下图)，再将“主目录”中的路径选不同的目录即可。调用格式如“http://www.bbc.com”。</font>
		<p align="center">
				<font color="#3300cc">
						<img height="416" alt="" src="http://windows.chinaitlab.com/imgfiles/2001.12.20.9.0.27.200102171308150101.gif" width="477" />
				</font>
		</p>
		<p align="left">
				<br />
				<font color="#3300cc">（二）在linux平台下采用虚拟主机的方法实现过程：<br />         虚拟主机是指采用特殊的软硬件技术，把一台真正的主机分为若干台主机对外提供服务，每一台虚拟主机都可以具有独立的域名和地址，具有完整的互联网服务器（WWW、FTP、Email）等功能。虚拟主机之间完全独立，并可由用户自行管理，可以大大地缓解互联网上IP及服务器等资源的不足，同时降低用户的硬件费用、网络维护费用和通讯服务费用。<br />        这里说的虚拟主机是指在一台机器上仅运行一个httpd后台程序支持多个Apache服务器，如在公司财务部门有一台web服务器，名为 account.yourdomain.com,同时又想为sales部门建立网站，网站内容也放在该机器上，通过sales.yourdomain.com访问，这就要用到虚拟主机设置。<br />设置Apache虚拟主机通常有两种方案 <br /><br />一、基于IP的虚拟主机 <br /><br />这种方式需要在机器上设置IP别名，象上面的例子，在一台机器的网卡上绑定多个IP地址去服务多个虚拟主机。若该机器的IP地址为192.168.11.2(account.yourdomain.com),首先你要设置IP别名（假设用192.168.11.4作为其别名IP）。加下面的行到 /etc/rc.d/rc.local，确保每次启动后自动运行。 <br /><br />#/sbin/ifconfig eth0:0 192.168.11.4 netmask 255.255.255.0 broadcast \ 192.168.11.255 up <br />#/sbin/route add -host 192.168.11.4 eth0:0 <br /><br />然后你需要设置/etd/httpd/conf/httpd.conf文件： <br /><br />《VirtualHost 192.168.11.4》* <br />ServerAdmin webmaster@yourdomain.com <br />DocumentRoot /home/httpd/sales.yourdomain.com <br />ServerName sales.yourdomain.com <br />ErrorLog /var/log/httpd/sales.yourdomain.com/error_log <br />TransferLog /var/log/httpd/sales.yourdomain.com/access_log <br />《/VirtualHost》 <br /><br />然后分别创建目录 /home/httpd/sales.yourdomain.com, /var/log/httpd/sales.yourdomain.com ,放相应的网站内容到目录/home/httpd/sales.yourdomain.com下即可，并确保你内部的DNS指定sales.yourdomain.com的A记录到IP地址192.168.11.4 。 <br />注：这种基于IP的虚拟主机有一个缺点，就是你需要更多的IP地址去服务各自的虚拟主机，如果你仅仅有一个IP地址，那么你将可以考虑用基于名字的虚拟主机方案。 <br /><br />二、基于名字的虚拟主机： <br /><br />它的优势就是不需要更多的IP地址，容易配置，不需要其它软硬件，现代的浏览器大多都支持这种方式。与基于IP的虚拟主机一样，你需要编辑文件/etc/httpd/conf/httpd.conf <br />NameVirtualHost 192.168.11.2 <br />《VirtualHost 192.168.11.2》 <br />ServerAdmin webmaster@yourdomain.com <br />DocumentRoot /home/httpd/sales.yourdomain.com <br />ServerName sales.yourdomain.com <br />ErrorLog /var/log/httpd/sales.yourdomain.com/error_log <br />TransferLog /var/log/httpd/sales.yourdomain.com/access_log <br />《/VirtualHost》 <br /><br />《VirtualHost 192.168.11.2》 <br />ServerAdmin webmaster@yourdomain.com <br />DocumentRoot /home/httpd/hr.yourdomain.com <br />ServerName hr.yourdomain.com <br />ErrorLog /var/log/httpd/hr.yourdomain.com/error_log <br />TransferLog /var/log/hr.yourdomain.com/access_log <br />《/VirtualHost》 <br /><br />注： 你需要加NameVirtualHost 指示在最前面，下面依次为各个虚拟主机，为了让它工作，你需要把sales.yourdomain.com, hr.yourdomain.com的DNS 都指向IP地址192.168.11.2 <br />上面的两种都将工作，如果是在外部网段，在互联网上提供WWW服务，你可能没有足够的真实IP地址来支持多个虚拟主机，便可用基于名字的虚拟主机方案，若是在内部网段上，你有较多的内部保留IP地址，将没有太大的区别。<br /><br /></font>
		</p>
<img src ="http://www.cnitblog.com/wildon/aggbug/22728.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/wildon/" target="_blank">Jerome</a> 2007-02-06 13:31 <a href="http://www.cnitblog.com/wildon/archive/2007/02/06/22728.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>