JBoss console password settings

Source: Internet
Author: User

JBoss settings

1. Hide the Access Directory

Jboss_home/server/default/deploy/jbossweb-tomcat55.sar/conf/web. xml

  1. <Param-name> listings </param-name>
  2. <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

  1. <Application-policy name = "web-console">
  2. <Authentication>
  3. <Login-module code = "org. jboss. security. auth. spi. UsersRolesLoginModule"
  4. Flag = "required">
  5. <Module-option name = "usersProperties"> props/web-console-users.properties </module-option>
    <Module-option name = "rolesProperties"> props/web-console-roles.properties </module-option>
  6. </Login-module>
  7. </Authentication>
  8. </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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.