NameVirtualHost + mod_rewrite

NameVirtualHost 192.168.1.2
<VirtualHost gi.2288.org>
ServerAdmin btbtd@yahoo.com.cn
DocumentRoot "I:/gi-2288"
ServerName gi.2288.org
ErrorLog "G:/Apache/dummy-host.example.com-error_log"
UseCanonicalName Off

Alias /article "L:/article/"
<Directory "L:/article">
Options All
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>


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
RewriteRule /modules/newbb/viewtopic_id(.*)-(.*)/.htm$ /modules/newbb/viewtopic.php?topic_id=$1&forum=$2

# 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

#Other
RewriteRule /index.html$ /index.php

</VirtualHost>

 

news:
http://gi.2288.org:88/modules/news/index.php?storytopic=0&start=30
http://gi.2288.org:88/modules/news/topic0-30.htm

wfdownloads:
http://gi.2288.org:88/modules/wfdownloads/singlefile.php?cid=4&lid=130
http://gi.2288.org:88/modules/wfdownloads/down4-130.htm

http://gi.2288.org:88/modules/mydownloads/singlefile.php?cid=3&lid=63
http://gi.2288.org:88/modules/mydownloads/down3-63.htm

http://gi.2288.org:88/modules/myalbum/viewcat.php?num=20&cid=42
http://gi.2288.org:88/modules/myalbum/view20-42.htm

http://gi.2288.org:88/modules/myalbum/photo.php?lid=1483&cid=48
http://gi.2288.org:88/modules/myalbum/photo1484-48.htm

http://gi.2288.org:88/modules/AMS/archive.php?year=2004&month=12
http://gi.2288.org:88/modules/AMS/archive2004-12.htm

http://gi.2288.org:88/modules/booklists/viewcat.php?cid=1
http://gi.2288.org:88/modules/booklists/view1.htm

http://gi.2288.org:88/modules/xphpbbi/viewforum.php?f=16
http://gi.2288.org:88/modules/xphpbbi/viewforum_16.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?t=59
http://gi.2288.org:88/modules/xphpbbi/viewtopic_59.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?


t=59&start=0&postdays=0&postorder=asc&highlight=
http://gi.2288.org:88/modules/xphpbbi/viewtopic_post59-0-0-asc-2.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?p=56#56
http://gi.2288.org:88/modules/xphpbbi/viewtopic_o56.htm#56

http://gi.2288.org:88/modules/newbb/viewtopic.php?topic_id=107&forum=59
http://gi.2288.org:88/modules/newbb/viewtopic_id107-59.htm

http://gi.2288.org:88/modules/wordbook/category.php?categoryID=1
http://gi.2288.org:88/modules/wordbook/category_1.htm

http://gi.2288.org:88/modules/wordbook/letter.php?init=A
http://gi.2288.org:88/modules/wordbook/letter_A.htm

http://gi.2288.org:88/modules/wordbook/entry.php?entryID=113
http://gi.2288.org:88/modules/wordbook/entry_113.htm

 

News Modules
http://gi.2288.org:88/modules/news/index.php?storytopic=2
http://gi.2288.org:88/modules/news/topic_2.htm

http://gi.2288.org:88/modules/news/article.php?storyid=281
http://gi.2288.org:88/modules/news/article_281.htm

http://gi.2288.org:88/modules/news/index.php
http://gi.2288.org:88/modules/news/index.htm



wfdownloads
http://gi.2288.org:88/modules/wfdownloads/viewcat.php?cid=18
http://gi.2288.org:88/modules/wfdownloads/topic_18.htm

http://gi.2288.org:88/modules/wfdownloads/singlefile.php?cid=4&lid=16
http://gi.2288.org:88/modules/wfdownloads/down_item_4_file_16.htm

http://gi.2288.org:88/modules/wfdownloads/viewcat.php?op=&cid=19
http://gi.2288.org:88/modules/wfdownloads/topic_o_19.htm

http://gi.2288.org:88/modules/wfdownloads/newlist.php
http://gi.2288.org:88/modules/wfdownloads/newlist.htm

http://gi.2288.org:88/modules/wfdownloads/topten.php?list=hit
http://gi.2288.org:88/modules/wfdownloads/hit.htm

http://gi.2288.org:88/modules/wfdownloads/topten.php?list=rate
http://gi.2288.org:88/modules/wfdownloads/rate.htm

http://gi.2288.org:88/modules/mydownloads/index.php
http://gi.2288.org:88/modules/mydownloads/index.htm



mydownloads
http://gi.2288.org:88/modules/mydownloads/index.php
http://gi.2288.org:88/modules/mydownloads/index.htm

http://gi.2288.org:88/modules/mydownloads/viewcat.php?cid=3
http://gi.2288.org:88/modules/mydownloads/topic_3.htm

http://gi.2288.org:88/modules/mydownloads/topten.php?hit=1
http://gi.2288.org:88/modules/mydownloads/hit/1.htm



myAlbum
http://gi.2288.org:88/modules/myalbum/index.php
http://gi.2288.org:88/modules/myalbum/index.htm

http://gi.2288.org:88/modules/myalbum/viewcat.php?cid=41
http://gi.2288.org:88/modules/myalbum/topic_41.htm

http://gi.2288.org:88/modules/myalbum/viewcat.php?num=20&cid=78
http://gi.2288.org:88/modules/myalbum/topic_20_photo_78.htm



AMS
http://gi.2288.org:88/modules/AMS/index.php
http://gi.2288.org:88/modules/AMS/index.htm

http://gi.2288.org:88/modules/AMS/article.php?storyid=42
http://gi.2288.org:88/modules/AMS/article_42.htm

http://gi.2288.org:88/modules/AMS/index.php?storytopic=2
http://gi.2288.org:88/modules/AMS/topic_2.htm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
systemctl status httpd. service Chttpd. service The Apache HTTP Server Loaded: loaded (/us/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since = 2023-05-24 19:48:16 CST; 1min 40s ago Docs: man: httpd(8) man: apachectl(8) Process: 14126 Execstop=/bin/ KiLL- WINCH $IMAINPID} (code-exited, status-1 /FAILURE) Process: 13507 ExecReload=/usr/ sbin/httpd $OPTIONS - k graceful (code exited. status-O/SUCCESS) Process: 14124 Execstart=/usr/ sbin/httpd $OPTIONS -DFOREGROUND ( code-exited, status-1 /FAILURE) Main PID: 14124 (code exited, status1/FAILURE) 24 19: 48:16 localhost. localdomain httpd(14124): AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd. conf:1 24 19:48:16 localhost. localdomain httpd/14124] : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost. localdomain. Set th... his message 24 19:48:16 localhost. localdomain http(14124] : no listening sockets available, shutting down 24 19:48:16 localhost. Localdomain http 14124) : AH00015: Unable to open logs 24 19: 48:16 localhost. localdomain systemd(1): httpd, service: main process exited, code exited, status -1 /FAILURE 24 19: 48:16 localhost. localdomain kill|14126| : kill: cannot find process 24 19: 48:16 localhost. localdomain systemd(1]: httpd. service: control process exited, code exited status 1 24 19:48:16 localhost. localdomain systemd(1]: Failed to start The Apache HTTP Server 24 19:48:16 localhost. Localdomain systemd(1): Unit httpd. service entered failed state. 59 24 19:48:16 localhost. localdomain systemd(1|: httpd. service failed. Hint: some lines were eLlipsized, use - L to show in Tull
05-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值