| 个人主页系统在Apache上的实现方法 |
|
| 作者:佚名 建站资源库来源:不详 点击数: 更新时间:2006-6-9 |
结合大家的经验和我自己的实践,得到以下几点在Apache上实现个人主页系统的方法。(注意:我的测试环境如下:FreeBSD4.7+Apache2.0.43)
问题: Apache上的个人主页系统 目的:
1.WEB:http://www.site.com/~username 2.FTP :/www/free/username/public_html
方法一:使用mod_userdir模块 需要使用Apache 之中的userdir_module, 将 LoadModule userdir_module libexec/apache2/mod_userdir.so 之前的#去掉, 然后如下配置:
UserDir /www/free/*/public_html/ <Directory /www/free/*/public_html> DirectoryIndex index.html </Directory>
方法二:使用rewrite 需要使用Apache之中的rewrite_module, 将 LoadModule rewrite_module libexec/apache2/mod_rewrite.so之前的#去掉, 然后如下配置:
RewriteRule ^/~([0-9A-Za-z_\-]+)(.*) /wwww/free/$1/public_html$2 <Directory /www/free/*/public_html> DirectoryIndex index.html </Directory>
说明: 1.用户的FTP可以使用任何FTP系统来指定其路径为/www/free/username ]]>
|
|
注明: ☉本站所有软件和资料大多来自互联网收集整理,仅供学习和研究使用。如有侵犯您版权的,请来信指出,本站将立即改正。 邮址:diyb208%21cn.com请将%换成@ ☉下载的压缩包如需要密码的,密码统一为:www.0668idc.com ☉茂名资源网不承担用户因使用这些下载资源和技术教程对自己和他人造成任何形式的损失或伤害。 ☉资源下载请使用[FlashGet]下载,否则可能出现下载不了的情况;解压缩请使用[Winrar]。 |
| 收藏此页到:[天极网摘] [和讯网摘] [新浪VIVI] [365key] [博采中心] [网摘中国] [5Seek] [狐摘 ] [365Fav] [热门 ] [人人网摘] [我摘] [YouNote] 请留意一下广告 |
|
|
上一个建站资源库: Apache的httpd.conf文件常用指令解释 下一个建站资源库: FreeBSD网站平台建设全过程 第六步 |
|
【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
|
|
|
|
|
| 【网友评论】(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
|
|
|
|
|
Copyright © 1999-2005 0668idc.Com Corporation. All rights reserved 粤ICP备05123677号
|