-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2335 from hongwei1/develop
bugfix/separate the web.xml for production and develop mode
- Loading branch information
Showing
4 changed files
with
93 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
|
||
<!DOCTYPE web-app | ||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | ||
"web-app_2_3.dtd"> | ||
|
||
<web-app> | ||
<filter> | ||
<filter-name>LiftFilter</filter-name> | ||
<display-name>Lift Filter</display-name> | ||
<description>The Filter that intercepts lift calls</description> | ||
<filter-class>net.liftweb.http.LiftFilter</filter-class> | ||
</filter> | ||
|
||
|
||
<filter-mapping> | ||
<filter-name>LiftFilter</filter-name> | ||
<url-pattern>/*</url-pattern> | ||
</filter-mapping> | ||
|
||
<!--set the status of HttpOnly and Secure cookie flags--> | ||
<session-config> | ||
<cookie-config> | ||
<secure>true</secure> | ||
<http-only>true</http-only> | ||
</cookie-config> | ||
</session-config> | ||
|
||
|
||
<!-- H2 web console | ||
<servlet> | ||
<servlet-name>H2Console</servlet-name> | ||
<servlet-class>org.h2.server.web.WebServlet</servlet-class> | ||
<load-on-startup>0</load-on-startup> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>H2Console</servlet-name> | ||
<url-pattern>/console/*</url-pattern> | ||
</servlet-mapping> | ||
--> | ||
|
||
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
|
||
<!DOCTYPE web-app | ||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | ||
"web-app_2_3.dtd"> | ||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | ||
"web-app_2_3.dtd"> | ||
|
||
<web-app> | ||
<filter> | ||
<filter-name>LiftFilter</filter-name> | ||
<display-name>Lift Filter</display-name> | ||
<description>The Filter that intercepts lift calls</description> | ||
<filter-class>net.liftweb.http.LiftFilter</filter-class> | ||
</filter> | ||
|
||
<filter-mapping> | ||
<filter-name>LiftFilter</filter-name> | ||
<url-pattern>/*</url-pattern> | ||
</filter-mapping> | ||
|
||
<!--set the status of HttpOnly and Secure cookie flags--> | ||
<session-config> | ||
<cookie-config> | ||
<secure>true</secure> | ||
<http-only>true</http-only> | ||
</cookie-config> | ||
</session-config> | ||
|
||
<!-- H2 web console | ||
<servlet> | ||
<servlet-name>H2Console</servlet-name> | ||
<servlet-class>org.h2.server.web.WebServlet</servlet-class> | ||
<load-on-startup>0</load-on-startup> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>H2Console</servlet-name> | ||
<url-pattern>/console/*</url-pattern> | ||
</servlet-mapping> | ||
--> | ||
<filter> | ||
<filter-name>LiftFilter</filter-name> | ||
<display-name>Lift Filter</display-name> | ||
<description>The Filter that intercepts lift calls</description> | ||
<filter-class>net.liftweb.http.LiftFilter</filter-class> | ||
</filter> | ||
|
||
|
||
<filter-mapping> | ||
<filter-name>LiftFilter</filter-name> | ||
<url-pattern>/*</url-pattern> | ||
</filter-mapping> | ||
|
||
<!--set the status of HttpOnly and Secure cookie flags--> | ||
<!--<session-config>--> | ||
<!-- <cookie-config>--> | ||
<!-- <secure>true</secure>--> | ||
<!-- <http-only>true</http-only>--> | ||
<!-- </cookie-config>--> | ||
<!--</session-config>--> | ||
|
||
|
||
<!-- H2 web console | ||
<servlet> | ||
<servlet-name>H2Console</servlet-name> | ||
<servlet-class>org.h2.server.web.WebServlet</servlet-class> | ||
<load-on-startup>0</load-on-startup> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>H2Console</servlet-name> | ||
<url-pattern>/console/*</url-pattern> | ||
</servlet-mapping> | ||
--> | ||
|
||
</web-app> |