1. Overview

This runbook describes how to expose ISPConfig apps (phpMyAdmin, webmail, rspamd) running on localhost:8081 through Cloudflare Tunnel using an HTTP-only Apache origin.

2. Cloudflare DNS

  • Type: CNAME
  • Name: apps
  • Target: <tunnel-name>.cfargotunnel.com
  • Proxy: Enabled

3. cloudflared config.yml

ingress:
  - hostname: panel.example.com
    service: http://localhost:8080

  - hostname: admin.example.com
    service: http://localhost:8081

  - hostname: apps.example.com
    service: http://localhost:8081

  - service: http_status:404

4. Apache Configuration

4.1 ports.conf

Listen 80
Listen 443
Listen 8081

4.2 Apps vhost


    ServerAdmin webmaster@localhost
    DocumentRoot /usr/local/ispconfig/apps

    
        Options FollowSymLinks
        AllowOverride None
        Require all granted
    



    SSLStaplingCache shmcb:/var/run/ocsp(128000)

5. phpMyAdmin Access

Access phpMyAdmin through:

https://apps.example.com/phpmyadmin

Do not access phpMyAdmin through panel.example.com, as it causes protocol mismatches and redirect loops.

6. Cloudflare Tunnel Routes

Routes are not required for phpMyAdmin or any other web applications. They are only used for private network CIDR routing. All apps traffic should be routed through ingress rules.

7. Validation

curl -v https://apps.example.com/phpmyadmin

8. Summary

This configuration exposes phpMyAdmin and other ISPConfig apps securely through Cloudflare Tunnel using an HTTP-only origin.