收入啤酒88 发表于 2017-1-8 07:59:58

apache基于ssl配置weblogic(二)

  6. 使用mod_rewrite来重写URL,
      将rewrite_module modules/mod_rewrite.so放开
      在http.conf中新写入:
      <IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^/test1/ http://localhost/test-web/test
      </IfModule>
      重要的是RewriteEngine on
      下面是url做的映射,支持正则表达式
      这样凡是访问test1的请求都直接重定向到http://localhost/test-web/test
页: [1]
查看完整版本: apache基于ssl配置weblogic(二)