为你而来

2012年2月11日

【转】apache二级域名设置

摘要: 转载自 zqh24最终编辑 zqh24首先,你的拥有一个有泛域名解析的顶级域名,例如: domain.com其次,在 httpd.conf 中打开 mod_rewrite之后,在 httpd.conf 的最后,添加以下内容:RewriteEngine onRewriteMap lowercase int:tolowerRewriteMap vhost txt:usr/local/etc/apache/vhost.mapRewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$RewriteCond ${vhost:%1} ^(/.*)$RewriteRule 阅读全文

posted @ 2012-02-11 17:54 为你而来 阅读(481) 评论(0) 推荐(0) 编辑

导航