Apache 配置说明

<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> 

阅读更多
文章标签: apache
想对作者说点什么? 我来说一句

Apache Tomcat 负载均衡

2010年05月05日 4KB 下载

php运行环境配置说明

2011年07月11日 944KB 下载

配置Apache

2014年01月17日 3.37MB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭