分享
 
 
 

VirtualHost +Name +Port +Alias +Rewrite

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

VirtualHost +Name +Port +Alias +Rewrite

Listen 80

Listen 88

Listen 99

Listen 89

UseCanonicalName Off

NameVirtualHost 192.168.1.2:80

NameVirtualHost 192.168.1.2:88

NameVirtualHost 192.168.1.2:99

NameVirtualHost 192.168.1.2:89

<VirtualHost *:88>

ServerAdmin btbtd@yahoo.com.cn

DocumentRoot "I:/gi-2288"

ServerName gi.2288.org

ErrorLog "G:/Apache/dummy-gi.2288.org.88-error_log"

UseCanonicalName Off

Alias /article "L:/article/"

<Directory "L:/article/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /document "L:/Document/"

<Directory "L:/Document/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /forum "L:/forum/"

<Directory "L:/forum/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /color-scheme "L:/color-scheme/"

<Directory "L:/color-scheme/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /php "I:/php/"

<Directory "I:/php/">

Options FollowSymLinks

AllowOverride FileInfo

Order allow,deny

Allow from all

</Directory>

Alias /pro "L:/pro/"

<Directory "L:/pro">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /e "I:/e/"

<Directory "I:/e/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /a "I:/a/"

<Directory "I:/a/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /c "I:/c/"

<Directory "I:/c/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /n "I:/n/"

<Directory "I:/n/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /test "L:/Test/"

<Directory "L:/Test/">

Options all

AllowOverride all

Order allow,deny

Allow from all

</Directory>

RewriteEngine On

# --------------------News Modules

RewriteRule /modules/news/topic_(.+)\.htm$ /modules/news/index.php?storytopic=$1 [L]

RewriteRule /modules/news/article_([0-9]+).htm$ /modules/news/article.php?storyid=$1

RewriteRule /modules/news/topic(.*)-(.*)\.htm$ /modules/news/index.php?storytopic=$1&start=$2

RewriteRule /modules/news/archive\.htm$ /modules/news/archive.php

RewriteRule /modules/news/index.htm$ /modules/news/index.php

# --------------------Wfdownloads Modules

RewriteRule /modules/wfdownloads/topic_(.+)\.htm$ /modules/wfdownloads/viewcat.php?cid=$1 [L]

RewriteRule /modules/wfdownloads/topic_o_(.+)\.htm$ /modules/wfdownloads/viewcat.php?op=&cid=$1 [L]

RewriteRule /modules/wfdownloads/newlist\.htm$ /modules/wfdownloads/newlist.php

RewriteRule /modules/wfdownloads/hit_\.htm$ /modules/wfdownloads/topten.php?list=hit

RewriteRule /modules/wfdownloads/rate\.htm$ /modules/wfdownloads/topten.php?list=rate

RewriteRule /modules/wfdownloads/index.htm$ /modules/wfdownloads/index.php

RewriteRule /modules/wfdownloads/down(.*)-(.*)\.htm$ /modules/wfdownloads/singlefile.php?cid=$1&lid=$2

RewriteRule /modules/wfdownloads/list(.*)\.htm$ /modules/wfdownloads/viewcat.php?list=$1

# --------------------Mydownloads Modules

RewriteRule /modules/mydownloads/index.htm$ /modules/mydownloads/index.php

RewriteRule /modules/mydownloads/topic_(.+)\.htm$ /modules/mydownloads/viewcat.php?cid=$1 [L]

RewriteRule /modules/mydownloads/hit_(.+)\.htm$ /modules/mydownloads/topten.php?hit=$1 [L]

RewriteRule /modules/mydownloads/rate_(.+)\.htm$ /modules/mydownloads/topten.php?rate=$1 [L]

RewriteRule /modules/mydownloads/down(.*)-(.*)\.htm$ /modules/mydownloads/singlefile.php?cid=$1&lid=$2

# --------------------MyAlbum

RewriteRule /modules/myalbum/index.htm$ /modules/myalbum/index.php

RewriteRule /modules/myalbum/hit_(.+)\.htm$ /modules/myalbum/topten.php?hit=1

RewriteRule /modules/myalbum/photo_(.+)\.htm$ /modules/myalbum/photo.php?lid=$1 [L]

RewriteRule /modules/myalbum/topic_(.+)\.htm$ /modules/myalbum/viewcat.php?cid=$1 [L]

RewriteRule /modules/myalbum/view(.*)-(.*)\.htm$ /modules/myalbum/viewcat.php?num=$1&cid=$2

RewriteRule /modules/myalbum/photo(.*)-(.*)\.htm$ /modules/myalbum/photo.php?lid=$1&cid=$2

# --------------------AMS

RewriteRule /modules/AMS/index.htm$ /modules/AMS/index.php

RewriteRule /modules/AMS/archive.htm$ /modules/AMS/archive.php

RewriteRule /modules/AMS/article_(.+)\.htm$ /modules/AMS/article.php?storyid=$1

RewriteRule /modules/AMS/topic_(.+)\.htm$ /modules/AMS/index.php?storytopic=$1

RewriteRule /modules/AMS/archive(.*)-(.*)\.htm$ /modules/AMS/archive.php?year=$1&month=$2

# --------------------Booklist

RewriteRule /modules/booklists/index.htm$ /modules/booklists/index.php

RewriteRule /modules/booklists/hit_(.+)\.htm$ /modules/booklists/topten.php?hit=$1

RewriteRule /modules/booklists/rate_(.+)\.htm$ /modules/booklists/topten.php?rate=$1

RewriteRule /modules/booklists/view(.*)\.htm$ /modules/booklists/viewcat.php?cid=$1

# --------------------Xphpbbi

RewriteRule /modules/xphpbbi/index.htm$ /modules/xphpbbi/index.php

RewriteRule /modules/xphpbbi/viewforum_(.*)\.htm$ /modules/xphpbbi/viewforum.php?f=$1

RewriteRule /modules/xphpbbi/viewtopic_(.*)\.htm$ /modules/xphpbbi/viewtopic.php?t=$1

RewriteRule /modules/xphpbbi/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ /modules/xphpbbi/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5

RewriteRule /modules/xphpbbi/viewtopic_o(.*)\.htm#(.*)$ /modules/xphpbbi/viewtopic.php?p=$1#$1

# --------------------NewBB

RewriteRule /modules/newbb/index.htm$ /modules/newbb/index.php

RewriteRule /modules/newbb/viewall.htm$ /modules/newbb/viewall.php

# http://gi.2288.org:88/modules/newbb/viewall.php

# http://gi.2288.org:88/modules/newbb/viewall.htm

RewriteRule /modules/newbb/search.htm$ /modules/newbb/search.php

# http://gi.2288.org:88/modules/newbb/search.php

# http://gi.2288.org:88/modules/newbb/search.htm

RewriteRule /modules/newbb/forum_(.*)\.htm$ /modules/newbb/viewforum.php?forum=$1

# http://gi.2288.org:88/modules/newbb/viewforum.php?forum=5

# http://gi.2288.org:88/modules/newbb/forum_5.htm

RewriteRule /modules/newbb/viewtopic_id(.*)-(.*)\.htm$ /modules/newbb/viewtopic.php?topic_id=$1&forum=$2

# http://gi.2288.org:88/modules/newbb/viewtopic.php?topic_id=111&forum=5

# http://gi.2288.org:88/modules/newbb/viewtopic_id111-5.htm

RewriteRule /modules/newbb/topic_mode_(.*)-(.*)-(.*)\.htm$ /modules/newbb/viewtopic.php?viewmode=$1&topic_id=$2&forum=$3

# http://gi.2288.org:88/modules/newbb/viewtopic.php?viewmode=flat&topic_id=111&forum=5

# http://gi.2288.org:88/modules/newbb/topic_mode_flat-111-5.htm

RewriteRule /modules/newbb/newtopic_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ /modules/newbb/viewforum.php?start=$1&forum=$2&sortname=$3&sortorder=$4&sortsince=$5&type=$6

# http://gi.2288.org:88/modules/newbb/viewforum.php?start=0&forum=27&sortname=p.post_time&sortorder=DESC&sortsince=100&type=unread

# http://gi.2288.org:88/modules/newbb/newtopic_0-27-p.post_time-DESC-100-unread.htm

RewriteRule /modules/newbb/digest_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ /modules/newbb/viewforum.php?start=$1&forum=$2&sortname=$3&sortorder=$4&sortsince=$5&type=$6

# http://gi.2288.org:88/modules/newbb/viewforum.php?start=0&forum=27&sortname=p.post_time&sortorder=DESC&sortsince=100&type=digest

# http://gi.2288.org:88/modules/newbb/digest_0-27-p.post_time-DESC-100-digest.htm

RewriteRule /modules/newbb/unreplied(.*)\.htm$ /modules/newbb/viewall.php?type=$1

# http://gi.2288.org:88/modules/newbb/viewall.php?type=unreplied

# http://gi.2288.org:88/modules/newbb/unrepliedunreplied.htm

RewriteRule /modules/newbb/topic_time_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ /modules/newbb/viewtopic.php?viewmode=$1&order=$2&topic_id=$3&forum=$4&move=$5&topic_time=$6

# http://gi.2288.org:88/modules/newbb/viewtopic.php?viewmode=threaded&order=ASC&topic_id=111&forum=5&move=prev&topic_time=1105542643

# http://gi.2288.org:88/modules/newbb/topic_time_threaded-ASC-111-5-prev-1105542643.htm

# --------------------Ipb

RewriteRule /modules/ipboard/index.htm$ /modules/ipboard/index.php

RewriteRule /modules/ipboard/showtopic_(.*)-(.*)\.htm$ /modules/ipboard/index.php?showtopic=$1&s=$2

# http://gi.2288.org:88/modules/ipboard/index.php?showtopic=23&s=8d88e79f2ec22ddc5c84d6414bf6c945

# http://gi.2288.org:88/modules/ipboard/showtopic_23-8d88e79f2ec22ddc5c84d6414bf6c945.htm

RewriteRule /modules/ipboard/showforum_(.*)-(.*)\.htm$ /modules/ipboard/index.php?showforum=$1&s=$2

# http://gi.2288.org:88/modules/ipboard/index.php?showforum=17&s=8d88e79f2ec22ddc5c84d6414bf6c945

# http://gi.2288.org:88/modules/ipboard/showforum_17-8d88e79f2ec22ddc5c84d6414bf6c945.htm

RewriteRule /modules/ipboard/showforum_(.*)\.htm$ /modules/ipboard/index.php?showforum=$1

# http://gi.2288.org:88/modules/ipboard/index.php?showforum=14

# http://gi.2288.org:88/modules/ipboard/showforum_14.htm

RewriteRule /modules/ipboard/showtopic_(.*)\.htm$ /modules/ipboard/index.php?showtopic=$1

# http://gi.2288.org:88/modules/ipboard/index.php?showtopic=17

# http://gi.2288.org:88/modules/ipboard/showtopic_17.htm

RewriteRule /modules/ipboard/act_(.*)-(.*)\.htm$ /modules/ipboard/index.php?act=$1&c=$2

# http://gi.2288.org:88/modules/ipboard/index.php?act=SC&c=4

# http://gi.2288.org:88/modules/ipboard/act_SC-4.htm

RewriteRule /modules/ipboard/act-i_(.*)\.htm$ /modules/ipboard/index.php?act=$1

# http://gi.2288.org:88/modules/ipboard/index.php?act=idx

# http://gi.2288.org:88/modules/ipboard/act-i_idx.htm

# --------------------Digest

RewriteRule /modules/digest/index.htm$ /modules/digest/index.php

RewriteRule /modules/digest/cid_(.*)\.htm$ /modules/digest/index.php?category_id=$1

# http://gi.2288.org:88/modules/digest/index.php?category_id=2

# http://gi.2288.org:88/modules/digest/cid_2.htm

RewriteRule /modules/digest/ud_(.*)-(.*)\.htm$ /modules/digest/index.php?op=$1&digest_id=$2

# http://gi.2288.org:88/modules/digest/index.php?op=update&digest_id=7

# http://gi.2288.org:88/modules/digest/ud_update-7.htm

RewriteRule /modules/digest/ctid_(.*)\.htm$ /modules/digest/custom.php?category_id=$1

# http://gi.2288.org:88/modules/digest/custom.php?category_id=2

# http://gi.2288.org:88/modules/digest/ctid_2.htm

# --------------------Wordbook

RewriteRule /modules/wordbook/index.htm$ /modules/wordbook/index.php

RewriteRule /modules/wordbook/letter.htm$ /modules/wordbook/letter.php

RewriteRule /modules/wordbook/category.htm$ /modules/wordbook/category.php

RewriteRule /modules/wordbook/category_(.*)\.htm$ /modules/wordbook/category.php?categoryID=$1

RewriteRule /modules/wordbook/letter_(.*)\.htm$ /modules/wordbook/letter.php?init=$1

RewriteRule /modules/wordbook/entry_(.*)\.htm$ /modules/wordbook/entry.php?entryID=$1

# --------------------Wordpress

RewriteRule /modules/wordpress/index.htm$ /modules/wordpress/index.php

RewriteRule /modules/wordpress/index_(.*)\.htm$ /modules/wordpress/index.php?p=$1

# http://gi.2288.org:88/modules/wordpress/index.php?p=9

# http://gi.2288.org:88/modules/wordpress/index_9.htm

RewriteRule /modules/wordpress/cat_(.*)\.htm$ /modules/wordpress/index.php?cat=$1

# http://gi.2288.org:88/modules/wordpress/index.php?cat=1

# http://gi.2288.org:88/modules/wordpress/cat_1.htm

RewriteRule /modules/wordpress/m_(.*)\.htm$ /modules/wordpress/index.php?m=$1

# http://gi.2288.org:88/modules/wordpress/index.php?m=200412

# http://gi.2288.org:88/modules/wordpress/m_200412.htm

RewriteRule /modules/wordpress/author_(.*)\.htm$ /modules/wordpress/index.php?author=$1

# http://gi.2288.org:88/modules/wordpress/index.php?author=1

# http://gi.2288.org:88/modules/wordpress/author_1.htm

# --------------------Flashgames

RewriteRule /modules/flashgames/index.htm$ /modules/flashgames/index.php

RewriteRule /modules/flashgames/highscores.htm$ /modules/flashgames/highscores.php

RewriteRule /modules/flashgames/hit_(.*)\.htm$ /modules/flashgames/topten.php?hit=$1

# http://gi.2288.org:88/modules/flashgames/topten.php?hit=1

# http://gi.2288.org:88/modules/flashgames/hit_1.htm

RewriteRule /modules/flashgames/rate_(.*)\.htm$ /modules/flashgames/topten.php?rate=$1

# http://gi.2288.org:88/modules/flashgames/topten.php?rate=1

# http://gi.2288.org:88/modules/flashgames/rate_1.htm

RewriteRule /modules/flashgames/cid_(.*)\.htm$ /modules/flashgames/viewcat.php?cid=$1

# http://gi.2288.org:88/modules/flashgames/viewcat.php?cid=5

# http://gi.2288.org:88/modules/flashgames/cid_5.htm

RewriteRule /modules/flashgames/lid_(.*)\.htm$ /modules/flashgames/game.php?lid=$1

# http://gi.2288.org:88/modules/flashgames/game.php?lid=15

# http://gi.2288.org:88/modules/flashgames/lid_15.htm

# --------------------Mylinks

RewriteRule /modules/mylinks/index.htm$ /modules/mylinks/index.php

RewriteRule /modules/mylinks/submit.htm$ /modules/mylinks/submit.php

RewriteRule /modules/mylinks/submit.htm$ /modules/mylinks/submit.php

RewriteRule /modules/mylinks/hit_(.*)\.htm$ /modules/mylinks/topten.php?hit=$1

# http://gi.2288.org:88/modules/mylinks/topten.php?hit=1

# http://gi.2288.org:88/modules/mylinks/hit_1.htm

RewriteRule /modules/mylinks/rate_(.*)\.htm$ /modules/mylinks/topten.php?rate=$1

# http://gi.2288.org:88/modules/mylinks/topten.php?rate=1

# http://gi.2288.org:88/modules/mylinks/rate_1.htm

RewriteRule /modules/mylinks/cid_(.*)\.htm$ /modules/mylinks/viewcat.php?cid=$1

# http://gi.2288.org:88/modules/mylinks/viewcat.php?cid=5

# http://gi.2288.org:88/modules/mylinks/cid_5.htm

RewriteRule /modules/mylinks/visit_(.*)-(.*)\.htm$ /modules/mylinks/visit.php?cid=$1&lid=$2

# http://gi.2288.org:88/modules/mylinks/visit.php?cid=21&lid=14

# http://gi.2288.org:88/modules/mylinks/visit_21-14.htm

# --------------------XMLine

RewriteRule /modules/xmline/index.htm$ /modules/xmline/index.php

RewriteRule /modules/xmline/cid_(.*)\.htm$ /modules/xmline/index.php?category_id=$1

# http://gi.2288.org:88/modules/xmline/index.php?category_id=2

# http://gi.2288.org:88/modules/xmline/cid_2.htm

RewriteRule /modules/xmline/o-item_(.*)\.htm$ /modules/xmline/item.php?digest_id=$1

# http://gi.2288.org:88/modules/xmline/item.php?digest_id=32

# http://gi.2288.org:88/modules/xmline/o-item_32.htm

# --------------------lykos_syndication

RewriteRule /modules/lykos_syndication/index.htm$ /modules/lykos_syndication/index.php

# --------------------Liaise

RewriteRule /modules/liaise/index.htm$ /modules/liaise/index.php

# --------------------Other

RewriteRule /index.html$ /index.php

</VirtualHost>

<VirtualHost *:89>

ServerAdmin btbtd@yahoo.com.cn

DocumentRoot "I:/gi-2288-89/"

ServerName gi.2288.org

ErrorLog "G:/Apache/dummy-gi.2288.org.89-error_log"

</VirtualHost>

<VirtualHost *:99>

ServerAdmin btbtd@yahoo.com.cn

DocumentRoot "I:/gi-2288-99/"

ServerName gi.2288.org

ErrorLog "G:/Apache/dummy-gi.2288.org.99-error_log"

</VirtualHost>

<VirtualHost *:80>

ServerAdmin btbtd@yahoo.com.cn

DocumentRoot "I:/gi-2288"

ServerName gi.2288.org

ErrorLog "G:/Apache/dummy-gi.2288.org.80-error_log"

</VirtualHost>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有