JBoss settings
1. Hide the Access Directory
Jboss_home/server/default/deploy/jbossweb-tomcat55.sar/conf/web. xml
- <Param-name> listings </param-name>
- <Param-value> false </param-value>
2. Set the JMX-Console Password
Because the firewall is used to block port 8080, users with ulterior motives can also access it through http: // your_domain/JMX-Console. The modification is as follows:
JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF/
Cancel <security-constraint> comments in web. xml
Jboss-web.xml cancels the <security-domain> Annotation
JBOSS_HOME/server/default/conf/props
Jmx-console-users.properties change admin = admin set username = Set Password
Jmx-console-roles.properties change admin to the user name set above
3. Set the console password for web-console:
JBOSS_HOME/server/default/deploy/management/console-mgr.sar/web-console.war/WEB-INF/
Cancel <security-constraint> comments in web. xml
Jboss-web.xml cancels the <security-domain> Annotation
Cd ../class
Web-console-roles.properties change admin to the user name set above
Web-console-users.properties change admin = admin set username = Set Password
Copy the preceding two files to JBOSS_HOME/server/default/conf/props.
Vi JBOSS_HOME/server/default/conf/login-config.xml
Find
- <Application-policy name = "web-console">
- <Authentication>
- <Login-module code = "org. jboss. security. auth. spi. UsersRolesLoginModule"
- Flag = "required">
- <Module-option name = "usersProperties"> props/web-console-users.properties </module-option>
<Module-option name = "rolesProperties"> props/web-console-roles.properties </module-option>
- </Login-module>
- </Authentication>
- </Application-policy>
4. Modify jboss_home/server/default/conf/jboss-service.xml
Set <! -- A flag to disable the scans -->
<Attribute name = "ScanEnabled"> true </attribute>: Change true to false.
Complete the JBoss console password settings. This setting can improve the performance, and the JBoss application is modified in a timely manner and will not take effect immediately, which has advantages and disadvantages.