目前共有2篇帖子。 内容转换:不转换▼
 
点击 回复
223 1
【备份】apache重写规则
初级魔法师 五级
1楼 发表于:2010-10-26 12:43
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
初级魔法师 五级
2楼 发表于:2010-10-26 12:44
# 公共虚拟目录
    RewriteEngine on
    RewriteRule ^/fictitious/(.*)$ /web/php/include/$1
    
    # 贴吧
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^tieba.blue.cat$
    RewriteCond %{REQUEST_URI} !^/web/php/tieba/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /web/php/tieba/$1
    RewriteCond %{HTTP_HOST} ^tieba.blue.cat$
    RewriteRule ^(/)?$ /web/php/tieba/index.php [L]
    
    # 消息
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^msg.blue.cat$
    RewriteCond %{REQUEST_URI} !^/web/php/msg/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /web/php/msg/$1
    RewriteCond %{HTTP_HOST} ^msg.blue.cat$
    RewriteRule ^(/)?$ /web/php/msg/index.php [L]
    
    #------------------------------------------------------------
    # phpMyAdmin
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^220.221.122.15$
    RewriteCond %{REQUEST_URI} !^/web/php/phpMyAdmin/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /web/php/phpMyAdmin/$1
    RewriteCond %{HTTP_HOST} ^220.221.122.15$
    RewriteRule ^(/)?$ /web/php/phpMyAdmin/index.php [L]
    
    # TH
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^phpserver$
    RewriteCond %{REQUEST_URI} !^/web/other/TH/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /web/other/TH/$1
    RewriteCond %{HTTP_HOST} ^phpserver$
    RewriteRule ^(/)?$ /web/other/TH/index.php [L]

回复帖子

内容:
抱歉,系统已内测完毕,本吧不能发帖
抱歉,系统已内测完毕,本吧不能发帖
用户名: 您目前是匿名发表
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:223 回复数:1
评论数: ?
作者:UbuntuFF测试员
最后回复:UbuntuFF测试员
最后回复时间:2010-10-26 12:44
精品区:代码备份区
 
©2010-2024 Arslanbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。