Coder port forward giving 404

as the title says im trying to access a port that I opened on code-server (browser) but when I open it I get that 404 page not found. the template is a customized docker container, the reverse proxy I use is traefik. and all this is hosted by myself on my own machine. wildcard is setup, dns is setup (cloudflare), I have tried almost everything. I dont know if im missing something. im using the extension on vscode that is called live server.
No description
20 Replies
Codercord
Codercord4mo ago
<#1274167787002003548>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys4mo ago
hey! how did you get that URL?
AniMo TnF
AniMo TnFOP4mo ago
I used live server then just clicked open in browser
AniMo TnF
AniMo TnFOP4mo ago
No description
AniMo TnF
AniMo TnFOP4mo ago
No description
Phorcys
Phorcys4mo ago
hmm weird try removing the "s" after 5501?
AniMo TnF
AniMo TnFOP4mo ago
same thing im using a docker container. but coder server is being ran by systemd
Phorcys
Phorcys4mo ago
try curl http://localhost:5501 within the workspace or try curl -k https://localhost:5501 if you're listening on HTTP/s
AniMo TnF
AniMo TnFOP4mo ago
curl: (35) OpenSSL/3.0.13: error:0A00010B:SSL routines::wrong version number I get this with https but http I get some sort of html page
Phorcys
Phorcys4mo ago
yeah this makes sense and so if you select "HTTP" end enter 5501, then press the open button it doesn't work?
AniMo TnF
AniMo TnFOP4mo ago
nope. I notice that the s is removed
Phorcys
Phorcys4mo ago
yeah the s is probably just for HTTP/s
AniMo TnF
AniMo TnFOP4mo ago
yea makes sense.
Phorcys
Phorcys4mo ago
has port-forwarding in the UI ever worked?
AniMo TnF
AniMo TnFOP4mo ago
I still get 404 not found. never has
Phorcys
Phorcys4mo ago
oh okay can I see your traefik configuration?
AniMo TnF
AniMo TnFOP4mo ago
config.yml? I will pm sent me and @Phorcys figured it out. problem was regex on the traefik config. correct way is: [a-z0-9-].dev.domain.com
Phorcys
Phorcys4mo ago
the Traefik filter did not allow connections to the wildcard subdomain
Codercord
Codercord4mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server