Java 带有spring url的apache Httpd.conf文件配置不起作用
我正在使用带有url的spring应用程序 我想在httpd.conf文件中进行更改以设置服务器别名,但在这种特殊情况下它不起作用 我为jspservlet应用程序尝试了以下步骤,这些步骤都很好 具有url say-> 我在httpd.conf文件中做了如下更改Java 带有spring url的apache Httpd.conf文件配置不起作用,java,spring,apache,httpd.conf,wildfly-8,Java,Spring,Apache,Httpd.conf,Wildfly 8,我正在使用带有url的spring应用程序 我想在httpd.conf文件中进行更改以设置服务器别名,但在这种特殊情况下它不起作用 我为jspservlet应用程序尝试了以下步骤,这些步骤都很好 具有url say-> 我在httpd.conf文件中做了如下更改 Under /etc/httpd/conf/httpd.conf 我做了以下改变 NameVirtualHost localhost:80 <VirtualHost localhost:80> ServerName m
Under /etc/httpd/conf/httpd.conf
我做了以下改变
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName myserver1.domain.co.in
ServerAlias shoppings.domain.co.in
DirectoryIndex Main.jsp index.html index.html.var
DocumentRoot /var/www/html/shoppings.co.in
ErrorLog logs/ussdserver1_error_log
CustomLog logs/ussdserver1_access_log common
ProxyPreserveHost On
ProxyPass /shoppingApp http://localhost:8080/shoppingApp
ProxyPassReverse /shoppingApp http://localhost:8080/shoppingApp
ProxyTimeout 2400
</VirtualHost>
<html>
<head>
<meta http-equiv="Refresh" content="0;url=/shoppingApp/Main.jsp">
<title>Index Redirect</title>
</head>
</body>
</html>
我做了以下改变
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName myserver1.domain.co.in
ServerAlias shoppings.domain.co.in
DirectoryIndex Main.jsp index.html index.html.var
DocumentRoot /var/www/html/shoppings.co.in
ErrorLog logs/ussdserver1_error_log
CustomLog logs/ussdserver1_access_log common
ProxyPreserveHost On
ProxyPass /shoppingApp http://localhost:8080/shoppingApp
ProxyPassReverse /shoppingApp http://localhost:8080/shoppingApp
ProxyTimeout 2400
</VirtualHost>
<html>
<head>
<meta http-equiv="Refresh" content="0;url=/shoppingApp/Main.jsp">
<title>Index Redirect</title>
</head>
</body>
</html>
当尝试使用spring应用程序url时,相同的步骤不起作用。。
请给我一些步骤,使该网址作为
http://campaign.domain.co.in/campaignApp/index.html
我正在使用wildfly8.2.1.final用于上述两个应用程序