1、项目是正常在运行的(使用curl命令,可以正常返回项目的一些内容和路径)
2、tomcat配置的端口也未被占用
3、服务器端的的防火墙已经永久关闭了
4、配置的nginx地址也没啥问题
可是就是浏览器不能正常访问
tomcat的service配置
<Service name="Catalina">
<Connector port="8899"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxThreads="500"
URIEncoding="UTF-8" />
<Connector port="8011" protocol="AJP/1.3" secretRequired="" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="X-Forwarded-For"
protocolHeader="X-Forwarded-Proto"
protocolHeaderHttpsValue="https"/>
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="这个地方也没问题" appBase="这里输入的域名没有问题"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="这是项目绝对路径没有问题" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
这是nginx的配置
server{
listen 80;
server_name 这里没有问题;
accesslog/data/wwwlogs/dome.this_nginx.log combined;
#error page 404/404.html;
#error_page 502/502.html;
location/{
proxy_pass http://127.0.0.1:8899:
include proxy.conf:
}
}