Nginx implements coexistence of port 80 and FRP
server { listen 80; server_name *.frp.51it.wang; #Blocking and forwarding location / { proxy_intercept_errors on; proxy_pass http://127.0.0.1:88 ; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Powered-By; } access_log /home/xx.log; error_log /home/error.log; }
server { listen 80; server_name *.frp.51it.wang; #Error page configuration error_page 404 404.html; location = /404.html { root /home/www; } #Blocking and forwarding location / { proxy_intercept_errors on; proxy_pass http://127.0.0.1:88 ; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Powered-By; } access_log /home/xx.log; error_log /home/error.log; }