Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      Tomcat is bound to 0.0.0.0 (all interfaces) by default. I feel the need to change this binding to e.g. localhost (127.0.0.1) or another interface by adding a <host>127.0.0.1</host> to plugin configuration in pom.xml. This is often necessary for security or firewall reasons during the development of web applications.

      Thanks in advance.

        Activity

        Hide
        Hudson added a comment -

        SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #267 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/267/)
        MTOMCAT-92 setup for https and ajp connectors too (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1539186)

        • /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        Show
        Hudson added a comment - SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #267 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/267/ ) MTOMCAT-92 setup for https and ajp connectors too (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1539186 ) /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #264 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/264/)
        MTOMCAT-92 Bind tomcat to a self-chosen network interface (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1538502)

        • /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        Show
        Hudson added a comment - SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #264 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/264/ ) MTOMCAT-92 Bind tomcat to a self-chosen network interface (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1538502 ) /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        Hide
        Daniel Cassidy added a comment -

        It's precisely because tomcat-maven-plugin is used during development that it is important to bind to the loopback interface only. To do otherwise exposes development code to the network and is a security risk.

        Binding to loopback only ought to have been the default.

        Show
        Daniel Cassidy added a comment - It's precisely because tomcat-maven-plugin is used during development that it is important to bind to the loopback interface only. To do otherwise exposes development code to the network and is a security risk. Binding to loopback only ought to have been the default.
        Hide
        Björn Michael added a comment -

        I use it for development only.

        Show
        Björn Michael added a comment - I use it for development only.
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        I miss you here. You are running tomcat:run on production systems ?
        As it's a maven plugin, it's a dev folks tool only.

        Show
        Olivier Lamy (*$^¨%`£) added a comment - I miss you here. You are running tomcat:run on production systems ? As it's a maven plugin, it's a dev folks tool only.
        Hide
        Björn Michael added a comment -

        Right. I currently use it in conjunction with tomcat:run goal.

        Show
        Björn Michael added a comment - Right. I currently use it in conjunction with tomcat:run goal.
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        in tomcat run plugin ?

        Show
        Olivier Lamy (*$^¨%`£) added a comment - in tomcat run plugin ?

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Björn Michael
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development