Adminer - rewrite woes

Sorry for yet another beg for help…

Trying to get “Adminer” to work with a path…

It answers and forwards to the php…

I go to:

…://home.peachbush.com/adminer

and logon page is displayed, fine.

I log in, and it goes to:

…://home.peachbush.com/?username=root

Note that it lost “adminer”

If I manually add to the URL and make it this:

http://home.peachbush.com/adminer/?username=root

it works…

I’ve tried a bunch of things, but can’t come up with a re-write that does that…

home.peachbush.com/adminer {
gzip
tls off
fastcgi / /run/php-fpm/php-fpm.sock php
root /usr/share/webapps/adminer
log /var/log/caddy/adminer_access.log
errors /var/log/caddy/adminer_error.log
}

Thanks!

Never mind… just changed it to a subdomain and went on with life :slight_smile:

1 Like

That works! Also, you can use three backticks (`) on their own line to keep formatting when you paste a Caddyfile or code.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.