apache 二级域名设置

xiaoxiao2024-10-28  12

<VirtualHost *:80> JkMount /servlet/* myloadbalancer JkMount /*.jsp myloadbalancer JkMount /*.do myloadbalancer JkMount /* myloadbalancer <Directory "E:/apache-tomcat-5.5.172/apache-tomcat-5.5.17/webapps/ROOT"> Options FollowSymLinks AllowOverride FileInfo RewriteEngine on RewriteCond %{HTTP_HOST} ^shop[0-9]+\.testpai\.com$ RewriteRule ^/?$ /%{HTTP_HOST} RewriteRule ^/(shop[0-9]+)\.testpai\.com/?$ /webshop/shop.do?shopId=$1[R] </Directory> ServerAdmin yourmail@testpai.com DocumentRoot E:/apache-tomcat-5.5.172/apache-tomcat-5.5.17/webapps/ROOT ServerName www.testpai.com ServerAlias *.testpai.com DirectoryIndex index.jsp ErrorLog logs/all-sites-error.log CustomLog logs/all-sites-access.log common </VirtualHost> shop12.testpai.com --->shop12.testpai.com/webshop/shop.do?shopId=12 必须设置泛域名解析
转载请注明原文地址: https://www.6miu.com/read-5018708.html

最新回复(0)