Comments (6)
OK! I have found it.
It happened after this change: 6c36c19
It seems gin package has an issue with this from long time ago.
I will role it back.
from x-ui.
I have a similar problem on v1.8.4. When Listen Domain is set, access to the panel is not possible.
Downgrading to v1.8.3 resolved the issue.
I don't know if this information is helpful:
I'm not using Nginx reverse proxy.
I'm using cloudflare CDN proxy to access the panel (on a non-standard port, utilizing cloudflare's origin rules to rewrite destination port number)
from x-ui.
This problem is now solved and will be available in next release
from x-ui.
Using Listen Domian
is to limit access to the panel only by this domain.
If you have problem, you should debug the proxy and receved requests.
You can test it simply by a curl command:
curl -H "Host: example.com" http://ip:port/x-ui
from x-ui.
x-ui installed on a test VM, no tls,
webDomain example.com
webBasePath /path/
Version 1.8.3
root@debian:~# curl http://127.0.0.1:54321/path/ -i
HTTP/1.1 403 Forbidden
Date: Sat, 29 Jun 2024 14:58:33 GMT
Content-Length: 0
root@debian:~# curl -H "Host: example.com" http://127.0.0.1:54321/path/ -i
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Sat, 29 Jun 2024 14:58:54 GMT
Transfer-Encoding: chunked
<!DOCTYPE html>
<html lang="en">
...
Upgraded to version 1.8.4
root@debian:~# curl http://127.0.0.1:54321/path/ -i
HTTP/1.1 403 Forbidden
Date: Sat, 29 Jun 2024 15:01:54 GMT
Content-Length: 0
root@debian:~# curl -H "Host: example.com" http://127.0.0.1:54321/path/ -i
HTTP/1.1 403 Forbidden
Date: Sat, 29 Jun 2024 15:09:25 GMT
Content-Length: 0
from x-ui.
I tested something else, If I include port number in Host header, the request succeeds:
version 1.8.4
root@debian:~# curl -H "Host: example.com" http://127.0.0.1:54321/path/ -i
HTTP/1.1 403 Forbidden
Date: Sat, 29 Jun 2024 15:49:13 GMT
Content-Length: 0
root@debian:~# curl -H "Host: example.com:54321" http://127.0.0.1:54321/path/ -i
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Sat, 29 Jun 2024 15:49:27 GMT
Transfer-Encoding: chunked
<!DOCTYPE html>
<html lang="en">
...
from x-ui.
Related Issues (20)
- Discussions HOT 3
- Fragmentation per Inbound HOT 1
- Change in the database is not applied HOT 6
- "Empty" address in subscription HOT 1
- QUIC not working with Json Fragmentation HOT 1
- Periodic unplanned x-ui/x-ray Restarts HOT 1
- Stored XSS HOT 1
- فعال کردن فرگمنت برای اینباند منتخب در بخش ساب اسکریپشن جیسون HOT 1
- Setup behind reverse proxy HOT 2
- dns
- هنگ کردن HOT 1
- از کار افتادن سرور خارج در ریورس تانل پنل به پنل ( سنایی ) HOT 2
- Please add an option to exclude specific IPs for BOT notification HOT 1
- مشکل ربات تلگرام با ایدی های ۹ رقمی
- add splihttp and 支持无域名版本的VLESS Reality搭建 support
- مشکل در ریست کردن ترافیک کلاینت
- دسترسی به شبکه داخلی و استفاده از دی ان اس داخل شبکه
- Outbounds support sockopt interface option
- Separate inbounds and clients.
- external proxy+header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-ui.