0
我創建了一個域名並將其重新定義爲您的外部IP地址。還要啓動nginx和tomcat。 將域重新定義爲外部IP地址。域名+ nginx + tomcat設置
我想隱藏的端口8081和報文/春/
現在我有一些設置 nginx.conf
server {
listen 81;
server_name www.truckpart4you.com truckpart4you.com;
access_log logs/host.access.log main;
location/{
proxy_pass localhost:81/;
proxy_redirect off;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}}
和的server.xml(for tomcat)
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"/>
如何爲vindovs配置nginx和tomcat?