关闭

Apache 配置说明

标签: apache
299人阅读 评论(0) 收藏 举报

<VirtualHost 211.154.000.00:80>
    ServerAdmin root@XXX.com
    DocumentRoot /opt/XXX/core-web
    ServerName data.XXX.com
    DirectoryIndex index.html index.jsp

 RewriteEngine   on
 RewriteLog      logs/rewrite.log
 RewriteLogLevel 0

    RewriteRule ^/view/make-([0-9]+)-([0-9]+)/.html$   /view/make.jsp?make=$1&salezone=$2 [PT]
    RewriteRule ^/view/model-([0-9]+)-([0-9]+)-([0-9]+)/.html$   /view/model.jsp?model=$1&year=$2&salezone=$3 [PT]
    RewriteRule ^/view/news-([0-9]+)-([0-9]+)/.html$   /view/news.jsp?model=$1&salezone=$2 [PT]
    RewriteRule ^/view/trimparam-([0-9]+)-([0-9]+)/.html$   /view/trimparam.jsp?trim=$1&salezone=$2 [PT]
    RewriteRule ^/view/trimconf-([0-9]+)-([0-9]+)/.html$   /view/trimconf.jsp?trim=$1&salezone=$2 [PT]
    RewriteRule ^/view/trimprice-([0-9]+)-([0-9]+)/.html$   /view/trimprice.jsp?trim=$1&salezone=$2 [PT]
    RewriteRule ^/view/modelparam-([0-9]+)-([0-9]+)-([0-9]+)/.html$   /view/modelparam.jsp?model=$1&year=$2&salezone=$3 [PT]
    RewriteRule ^/view/modelconf-([0-9]+)-([0-9]+)-([0-9]+)/.html$   /view/modelconf.jsp?model=$1&year=$2&salezone=$3 [PT]
    RewriteRule ^/view/modelprice-([0-9]+)-([0-9]+)-([0-9]+)/.html$   /view/modelprice.jsp?model=$1&year=$2&salezone=$3 [PT]
    RewriteRule ^/view/makeseller-([0-9]+)/.html$   /view/makeseller.jsp?make=$1 [PT]
    RewriteRule ^/view/modelseller-([0-9]+)/.html$   /view/modelseller.jsp?model=$1 [PT]

 ResinConfigServer /usr/local/resin/conf/resin.conf
 CauchoHost 127.0.0.1 6802
 <Files *.jsp>
  SetHandler caucho-request
 </Files>


</VirtualHost> 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:14416次
    • 积分:196
    • 等级:
    • 排名:千里之外
    • 原创:6篇
    • 转载:3篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档