Neil,
On 1/5/22 17:27, Neil Aggarwal wrote:
Hello all:
If I access a simple html file from the command line
using lynx:
lynx http://127.0.0.1:8080/www/
I get the page and this entry in the localhost_access_log:
0:0:0:0:0:0:0:1 - - [05/Jan/2022:16:21:22 -0600] "GET /www/index.html
HTTP/1.0" 200 19
But if I try to do that through the web by visiting
http://dev.propfinancing.com/www/index.html
I get a Forbidden page. I see this in the localhost_access_log:
nn.nnn.nnn.nnn - - [05/Jan/2022:16:21:46 -0600] "GET /www/index.html
HTTP/1.1" 403 619
I tried to set my Host tag in server.xml to capture everything:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Alias>*</Alias>
Any idea what I did wrong?
What is the defaultHost for the <Engine>?
It's usually:
<Engine defaultHost="localhost">
... which means it should already be the default (catch-all) host.
403 means "unauthorized" which could mean something other than "I can't
find the host".
Note that your (successful) curl command is connecting to host:8080 and
your "through the web" URL doesn't have a port number, so it will be
using port 80. What are the contents of the pare returned to the web
browser when you get that 403?
With a domain name like "propfinancing", please also make sure to get
the TLS working properly ;)
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org