Hi.
That looks more like an Apache httpd issue, than a Tomcat issue (as you mention, the
tomcat logfiles do not show anything, and the rest tends to indicate that Apache httpd is
not proxying these calls to tomcat, but trying to resolve them locally).
This being said, I cannot find any obvious configuration error in the setup
below.
The only thing which makes me a bit suspicious is this :
> ssl_error_log:[Sat Aug 24 11:44:36 2019] [error] [client 79.75.96.60] =
> File does not exist: /var/www/html/com/cloviscorp/ClovisWebApp
where does that "ssl_error_log:" prefix come from ?
It does not seem to have a reason to be there, considering your configuration
copied below.
On 24.08.2019 14:56, Mark Bordelon wrote:
VERSIONS AND SETUP:
Both Apache/2.2.34 (Unix) and Apache Tomcat/8.0.53 are running on the same
Linux AWS EC2 instance.
CONFIGURATION EXCERPT FROM APACHE'S httpd.conf:
<VirtualHost *:80>
ServerName cloviscorp.com
DocumentRoot /var/www/html/com/cloviscorp
<Directory "/var/www/html/com/cloviscorp">
Order Allow,Deny
Allow From All
AllowOverride All
Options -Indexes
</Directory>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /ClovisWebApp http://localhost:8080/ClovisWebApp
ProxyPassReverse / http://localhost:8080/
<Location "/">
Order allow,deny
Allow from all
</Location>
Header set Access-Control-Allow-Origin null
Header set Access-Control-Allow-Headers "Origin, X-Requested-With,
Content-Type"
ErrorLog logs/cloviscorp.com-error_log
CustomLog logs/cloviscorp.com-access_log common
</VirtualHost>
<VirtualHost *:443>
ServerName cloviscorp.com
DocumentRoot /var/www/html/com/cloviscorp
<Directory "/var/www/html/com/cloviscorp">
Order Allow,Deny
Allow From All
AllowOverride All
Options -Indexes
</Directory>
SSLEngine on
SSLCertificateFile "/etc/httpd/server.crt"
SSLCertificateKeyFile "/etc/httpd/server.key"
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /ClovisWebApp http://localhost:8080/ClovisWebApp
ProxyPassReverse /ClovisWebApp http://localhost:8080/ClovisWebApp
<Location "/">
Order allow,deny
Allow from all
</Location>
ErrorLog logs/cloviscorp-secure.com-error_log
CustomLog logs/cloviscorp-secure.com-access_log common
</VirtualHost>
CONFIGURATION EXCERPT FROM TOMCAT's server.xml:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
proxyName="www.cloviscorp.com"
proxyPort="80"/>
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
PROBLEM:
A) http://www.cloviscorp.com/ClovisWebApp/textservice/health WORKS FINE
B) https://www.cloviscorp.com/ClovisWebApp/textservice/health RETURNS:
Not Found
The requested URL /ClovisWebApp/textservice/health was not found on this
server.
LOGS:
Tomcat logs show nothing, Apache log the following when I hit the second =
(Secure) link:
ssl_error_log:[Sat Aug 24 11:44:36 2019] [error] [client 79.75.96.60] =
File does not exist: /var/www/html/com/cloviscorp/ClovisWebApp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org