5 Replies Latest reply on Mar 8, 2005 1:45 PM by darranl

    Change localhost name

    max_ten

      I'm using JBoss 4.0.1

      How to change from http://localhost:8080/myApp to http://myname/myApp ?

      Thank you.

        • 1. Re: Change localhost name

          Configure the tomcat webserver to listen on port 80. Then the following urls are equal : http://localhost:80 - http://localhost

          • 2. Re: Change localhost name
            jwisetech

            To add...which configuration file do you change to do this (is it the all, default, or minimal directory???), changing one changes the others?...also, I have a case where my server is multi-homed...which file do I change? I feel nuts asking such a basic question after working for years with the "other" app servers...it begs the question why would something so simple as setting a listener address / port for a webserver make it onto this forum in the first place... (sorry for my diatribe, I'm frustrated!!!)

            • 3. Re: Change localhost name
              darranl

              ...it begs the question why would something so simple as setting a listener address / port for a webserver make it onto this forum in the first place...

              The meanings of the different folders under 'server' are described in the administrators guide.

              The argument to pass into the run script to specify the IP address for JBoss to bind it is in the administrators guide.

              Changing the port that Tomcat listens on for web requests is in the administrators guide.

              The administrators guide is available for free from the 'Documentation' link at the top of the page. Additionaly a lot of this information is also available in the Wiki and in past posts on these forums.

              • 4. Re: Change localhost name
                jwisetech

                Thanks...I read through the guide and found what I was looking for...but don't you think it would've been a lot easier to just type back:

                use run --host ...read admin guide for more info.

                A search of the forums did not reveal any past posts otherwise I would've used that info. Excuse me for attempting to use the forum for something other than its intended purpose...which is?

                • 5. Re: Change localhost name
                  darranl

                  Excuse me for attempting to use the forum for something other than its intended purpose...which is?

                  Sorry you might have miss-understood my previous post, I was not trying to answer the technical questions - I was answering your question: - 'why would something so simple as setting a listener address / port for a webserver make it onto this forum in the first place'

                  Your question was suggesting that the information required was not documented and that you should not need to post a question in the forums. The answer to your question was that you had not yet read the manual.