Getting 404 error when using argo tunnel

I install phpmyadmin on sub domain and when I use sub domain with dns A record and no argo tunnel the phpmyadmin is accessible on subdomain. But when I use Argo tunnel with CName record, I get 404 error.
This is the config file

tunnel: 796c6fde-bae0-476f-86d6-3dfd022d6143
credentials-file: /home/cloudcreatr/.cloudflared/796c6fde-bae0-476f-86d6-3dfd022d6143.json

  - hostname:
    service: http://localhost:80
  - hostname:
    service: http://localhost:80
  - hostname:
  # Catch-all rule, which just responds with 404 if traffic doesn't match any of
  # the earlier rules
  - service: http_status:404
  enabled: true

And nginx config for phpmyadmin

server {
    listen 80;
    root /var/www/phpmyadmin;

    index index.html index.htm index.php;
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    ssl_certificate         /etc/ssl/cert.pem;
    ssl_certificate_key     /etc/ssl/key.pem;

    location / {
        try_files $uri $uri/ =404;

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

    location ~ /\.ht {
        deny all;


Maybe @cloudcreatr can help with this, as they’ve done a lot of work on Cloudflare Tunnel for that domain.

@sdayman we are still facing the Issue. Can’t find a way to resolve it. It would be great if you helped. This is a test server. Just for testing

To be honest, I’m not sure what the warp-routing part does, but that’s probably not related.

I’d try replacing the http_status:404 bit with hello_world to narrow down where the 404 is coming from.

OOPS! I just noticed you’re missing the “service:” part under phpmyadmin in your Ingress rules.

It routes to private ip of server or subnet.

That’s a typo, but I get sometimes 404 or blank phpmyadmin


I tried everything

I finally resolved the issue it was because I had something misconfigered as I was using phpmyadmin on subdomain. When using in sub directory with argo tunnel the phpmyadmin work’s great. @sdayman thanks a lot for helping