abcfy2 发表于 2013-03-29 11:38

tomcat或apache怎么重写路径?

今有一个JAVA写的网站。
访问的URL为https://a.test.com:8443/main/welcom
原本的访问方式是输入a.test.com:8080/main或者https://a.test.com:8443/main会自动进行跳转,URL显示https://a.test.com:8443/main/welcom


现在要求隐藏掉main目录,在URL直接写入域名即可访问
也就是输入a.test.com或https://a.test.com都会直接看到原本https://a.test.com:8443/main/welcom的内容
而且要求用户看到的URL地址栏是https://a.test.com,也就是看不到main主目录

现在服务器上装有apache和tomcat,用apache或tomcat应该怎么实现呢?
页: [1]
查看完整版本: tomcat或apache怎么重写路径?