Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Greg Huber
> > [Sun Nov 25 18:00:36.250346 2018] [core:notice] [pid 26421] SELinux > policy enabled; httpd running as context system_u:system_r:httpd_t:s0 Unless its a requirement of your host services just disable selinux as it adds complexity. When apache/tomcat is up and running you can enable it and

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread tomcat
On 25.11.2018 21:43, Lou Wallace wrote: Whew. Just read that link Warning: If Apache and Tomcat are configured to serve content from the same file system location then care must be taken to ensure that Apache is not able to serve inappropriate content such as the contents of the WEB-INF

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
Whew. Just read that link Warning: If Apache and Tomcat are configured to serve content from the same file system location then care must be taken to ensure that Apache is not able to serve inappropriate content such as the contents of the WEB-INF directory or JSP source code. This could occur

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Loai Abdallatif
you are running apache with selinux context . just try to avoid its complexity On Sun, Nov 25, 2018 at 10:27 PM Lou Wallace wrote: > How will selinux help? Not sure what you mean... > > On Sun, Nov 25, 2018 at 3:16 PM Loai Abdallatif > > wrote: > > > try selinux to permissive mode using

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread tomcat
Hi. I have not been following this in detail, but some of the things I've seen written made me think of the warning (in red type) on the page : http://tomcat.apache.org/connectors-doc/reference/apache.html In other words, if your front-end Apache httpd is configured in such a way that, to

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
How will selinux help? Not sure what you mean... On Sun, Nov 25, 2018 at 3:16 PM Loai Abdallatif wrote: > try selinux to permissive mode using #setenforce 0 to exclude it from > analyses > > On Sun, Nov 25, 2018 at 8:05 PM Lou Wallace > wrote: > > > hey Greg, > > > > No obvious errors in

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Loai Abdallatif
try selinux to permissive mode using #setenforce 0 to exclude it from analyses On Sun, Nov 25, 2018 at 8:05 PM Lou Wallace wrote: > hey Greg, > > No obvious errors in mod_jk log. Only has five lines > > [Sun Nov 25 15:22:11.637 2018] [14159:139840145266816] [info] > init_jk::mod_jk.c (3591):

Re: One tomcat server with different webapps on different ports?

2018-11-25 Thread Geraldo Netto
Hello Richard/Friends, Maybe you could check 2 things - the iptables to handle the incoming connections (eg: redirect between ports and, block connections if the ip is accessing for a specific port) - httpd/nginx as reverse proxies for caching and other fancy stuff Please note that I'm

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
hey Greg, No obvious errors in mod_jk log. Only has five lines [Sun Nov 25 15:22:11.637 2018] [14159:139840145266816] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.46 initialized [Sun Nov 25 15:22:11.657 2018] [14159:139840145266816] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.46 initialized [Sun

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Greg Huber
OK, sorry, if you are remote then 8080 port may not be open. You need to check tomcat app actually shows the page correctly. If the page http://IP/index.jsp just shows the jsp, have a look at the /var/log/httpd logs to see what its doing, eg access.log

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Greg Huber
>Question 1: Are 10-my.conf and my.conf supposed to automatically be used by >the system if they are in conf directory or do they need to be called from >somewhere like httpd.conf? Looking at httpd.conf ... # # Dynamic Shared Object (DSO) Support # Include conf.modules.d/*.conf ... # Supplemental

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
How can I do that from the command line shell? I tried it from browser and it timed out using http://IP:8080/index.jsp On Sun, Nov 25, 2018 at 11:54 AM Greg Huber wrote: > >>But my .jsp web page is still showing as plain text > > With tomcat running does it show correctly ie >

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Greg Huber
>>But my .jsp web page is still showing as plain text With tomcat running does it show correctly ie http://127.0.0.1:8080/../mypage.jsp then try http://127.0.0.1/../mypage.jsp ## tomcat server.xml using default port On Sun, 25 Nov 2018 at 15:28, Lou Wallace wrote: > hmm this is weird

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
It's there in /etc/httpd/modules its file size is 1556784 ls -l /etc/httpd/modules/mod_jk.so shows -rwxr-xr-x. 1 root root 1556784 apachectl -M shows no mod_jk.so loaded Question 1: Are 10-my.conf and my.conf supposed to automatically be used by the system if they are in conf directory or do

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Lou Wallace
hmm this is weird After adding #Options Indexes FollowSymLinks #No folders/files listed Options -Indexes -FollowSymLinks I decided to allow httpd.conf to try and load mod_jk.so again so I added back LoadModule jk_module /etc/httpd/modules/mod_jk.so and restarted httpd then when I do apachectl

Re: help installing mod_jk on Centos 7 on a Google Cloud server

2018-11-25 Thread Greg Huber
There's the problem, make sure you have copied mod_jk.so to /etc/httpd/modules/mod_jk.so My file size 1,556,816 bytes permission owner root and execute ls -l /etc/httpd/modules/mod_jk.so -rwxrwxr-x 1 root root also check the x executable And apachectl -M (sorry not -S) ... jk_module (shared)

Re: One tomcat server with different webapps on different ports?

2018-11-25 Thread richard
On 2018-11-24 23:25, Geraldo Netto wrote: Hello Richard/Friends, I might be wrong, but I guess the best approach would be to use apache httpd or nginx as a reverse proxy and leave tomcat alone Kind Regards, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ On Sun, 25 Nov

Re: One tomcat server with different webapps on different ports?

2018-11-25 Thread Mark Thomas
On November 24, 2018 11:05:33 PM UTC, rich...@xentu.com wrote: >Tomcat/9.0.13 > > >I'd like to have my webapps generally on 443, but the manager and >host-manager on some other port, say 444. > >My reason for doing that would be that I could then use linux's >iptables >to restrict access to 444