the website is divided into foreground and background, and there are 2 domain names.
enter domain name 1 to access the foreground
enter domain name 2 to access the background
but I can only see
after typing in my browser."this page does not work properly"
There is no problem with theproject. At first, I didn"t use the domain name, and I can access it by binding IP. Now I don"t know what to do after using the domain name, and I can"t see the error message. The configuration is as follows
.nginx used
1. Conf.d
in nginxserver_name 1 2;
web.xml under 2.WEB-INF
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
</filter-class>
<init-param>
<param-name>logLevel</param-name>
<param-value>WARN</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
3.urlrewrite.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 2.6//EN"
"http://tuckey.org/res/dtds/urlrewrite2.6.dtd">
<urlrewrite>
<rule>
<note></note>
<condition type="server-name">2</condition>
<from>^/admin/index.html$</from>
<to>/admin/login.htm</to>
</rule>
<rule>
<note></note>
<from>^/$</from>
<to>/index.html</to>
</rule>
</urlrewrite>
server under the conf directory under 4.tomcat
<Host name="1" appBase="" unpackWARs="true" autoDeploy="true">
<Alias>2</Alias>
</Host>
ask you what went wrong, or I didn"t post enough.