SirTunnel routes (debug)
[
    {
        "handle": [
            {
                "handler": "rewrite",
                "uri": "https:\/\/world.comphost.club"
            }
        ],
        "match": [
            {
                "host": [
                    "comphost.club"
                ]
            }
        ]
    },
    {
        "handle": [
            {
                "handler": "file_server",
                "root": "nl"
            }
        ],
        "match": [
            {
                "host": [
                    "nl.comphost.club"
                ]
            }
        ]
    },
    {
        "handle": [
            {
                "handler": "file_server",
                "root": "wiki"
            }
        ],
        "match": [
            {
                "host": [
                    "wiki.comphost.club"
                ]
            }
        ]
    },
    {
        "handle": [
            {
                "handler": "subroute",
                "routes": [
                    {
                        "handle": [
                            {
                                "handler": "vars",
                                "root": "\/var\/www"
                            }
                        ]
                    },
                    {
                        "handle": [
                            {
                                "handler": "static_response",
                                "headers": {
                                    "Location": [
                                        "{http.request.uri.path}\/"
                                    ]
                                },
                                "status_code": 308
                            }
                        ],
                        "match": [
                            {
                                "file": {
                                    "try_files": [
                                        "{http.request.uri.path}\/index.php"
                                    ]
                                },
                                "not": [
                                    {
                                        "path": [
                                            "*\/"
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "handle": [
                            {
                                "handler": "rewrite",
                                "uri": "{http.matchers.file.relative}"
                            }
                        ],
                        "match": [
                            {
                                "file": {
                                    "split_path": [
                                        ".php"
                                    ],
                                    "try_files": [
                                        "{http.request.uri.path}",
                                        "{http.request.uri.path}\/index.html",
                                        "{http.request.uri.path}\/index.php",
                                        "index.php"
                                    ]
                                }
                            }
                        ]
                    },
                    {
                        "handle": [
                            {
                                "handler": "reverse_proxy",
                                "transport": {
                                    "protocol": "fastcgi",
                                    "split_path": [
                                        ".php"
                                    ]
                                },
                                "upstreams": [
                                    {
                                        "dial": "unix\/\/run\/php\/php8.3-fpm.sock"
                                    }
                                ]
                            }
                        ],
                        "match": [
                            {
                                "path": [
                                    "*.php"
                                ]
                            }
                        ]
                    },
                    {
                        "handle": [
                            {
                                "handler": "file_server",
                                "hide": [
                                    "Caddyfile"
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "match": [
            {
                "host": [
                    "world.comphost.club"
                ]
            }
        ],
        "terminal": true
    }
]
Visit results (debug)
[]

active tunnels:

0 tunnels active.
Add your own +

.comphost.club

ssh -tR 9001:localhost:8080 tunnel@comphost.club ./sirtunnel.py .comphost.club 9001
copied to clipboard ✓