Hi.
Apologies for breaking conventions of this list and top-posting..
It seems that the issue below is more of a question for the Ubuntu list, than
Tomcat's.
The standard /etc/init.d/tomcat9 startup script included in the Ubuntu tomcat9 package,
should allow starting tomcat 9 on port 80 without any changes to the tomcat configuration
or scripts (other than setting the Connector to port 80 in server.xml).
If "it doesn't work", you should consult the Ubuntu user's support list, where you are
more likely to find appropriate answers.
See here : https://ubuntu.com/support/community-support
At another level : below, you mention trying authbind (which is what the standard Ubuntu
startup script does), but "I could not get it to work".
Did you check that the settings of authbind are correct, for port 80 ?
See : http://manpages.ubuntu.com/manpages/bionic/man1/authbind.1.html
On 09.07.2019 15:49, Arbelo, Ralph wrote:
Hello,
I have Tomcat 9.0.21 installed (binary distribution) on an Ubuntu 16.04 server. My
Java version is OpenJDK 11.0.4. I have the JSVC built and run the dameon.sh script
to start and stop Tomcat via a systemd script. Everything works great, but now I
need to run it on port 80 & 443. On our old server we have a script we use, but
it doesn’t work upon startup (due to the needing to use sudo to get privileges to
bind to port 80). For this new build, I was hoping to streamline the process and
have Tomcat start upon boot. I’ve been doing a lot of Google searching on binding
port 80 on Tomcat, but most of what I found was for older versions. Here’s what I
found:
* Use iptables to redirect 8080 to 80
* Proxy with NGINX or Apache
* Use authbind
I’d rather not use iptables to redirect as (from what I understand) you still
have to allow direct access to port 8080.
I tried using authbind, but I could not get it to work. All the procedures I
found were for older versions of Tomcat, so I don’t know if authbind will even
work with Tomcat 9.
Finally my questions-
1. Has anyone successfully used authbind with Tomcat 9?
2. Anything I’m missing with getting Tomcat to bind with port 80? Should I
just bite the bullet and use an HTTP proxy?
Thank you!
Ralph
Ralph Arbelo
Library IT Services - River Campus Libraries
University of Rochester
121B Rush Rhees Library, Rochester, NY 14627
o: 585.275.3449 - f: 585.275.1032
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org