GFW4Fun / x-ui-pro

:atom:X-UI PRO nginx reverse proxy with WS/gRPC/HttpUpgrade/SplitHttp support,Xray protocol support: vless,vmess,trojan,shadowsocks xui panel Cloudflare auto SSL,XTLS-rprx,SSR,v2fly Bypass restrictions: socks5,v2ray-core installer,sing-box,shadowtls,reality,tunnel,GFW warp wireguard geoip tuic Clash VPN mihomo hy2 oneclick argo bbr anticensorship
251 stars 77 forks source link

403 Nginx Error After New Version Installation #20

Open seyedrezabazyar opened 3 weeks ago

seyedrezabazyar commented 3 weeks ago

In the new version, after installation, I encounter a 403 error from nginx. I tested this on two separate servers and with three different domains, but the issue persists.

GFW4Fun commented 3 weeks ago

send error text nginx -t

GFW4Fun commented 3 weeks ago

Enter the Domain without ip character because is not valid and not secure! Example: 191.12.14.145_vps.hetzner.com not valid and not secure!

seyedrezabazyar commented 3 weeks ago

send error text nginx -t

root@xxx:~# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful


I use a subdomain that is like this: sub.domain.com


Error: 403 Forbidden \n nginx

operating systems: Ubuntu 20.04 Ubuntu 22.04 Ubuntu 24.04

GFW4Fun commented 3 weeks ago
wget https://raw.githubusercontent.com/GFW4Fun/x-ui-pro/master/x-ui-pro.sh
nano x-ui-pro.sh

xui-pro v2.0.6

remove line 147-148-149-150

bash ./x-ui-pro.sh -install yes -panel 0 -ONLY_CF_IP_ALLOW no