Kirby Panel w/ reverse Proxy


I am trying to get my the panel up and running for a while now without success:
We are hosting the Kirby installation on a Synology NAS Box in our local network ( The Synology host is running on Port 7004.

The domain we run the Kirby site on is
When a request for (:80) hits our external IP, NAT on our router forwards the request to a MacMini Server ( running a DNS server.
This DNS server has a setting for the alias to reverse proxy it to the Synology NAS box on port 7004:

	DocumentRoot "/Library/WebServer/Documents"
	DirectoryIndex index.html index.php
	CustomLog "/var/log/apache2/access_log" "%h %l %u %t \"%r\" %>s %b"
	ErrorDocument 404 /error.html
	<IfModule mod_ssl.c>
		SSLEngine Off
		SSLProtocol -ALL +SSLv3 +TLSv1
		SSLProxyProtocol -ALL +SSLv3 +TLSv1
	<IfModule mod_dav.c>
		DAVLockDB "/var/run/davlocks/.davlock100"
		DAVMinTimeout 600
	<IfModule mod_mem_cache.c>
		CacheEnable mem /
		MCacheSize 4096
	<Directory "/Library/WebServer/Documents">
		Options All +MultiViews -ExecCGI -Indexes -Includes
		AllowOverride None
		<IfModule mod_dav.c>
			DAV Off
	<IfModule mod_proxy_balancer.c>
		ProxyPass / balancer://balancer-group/
		ProxyPassReverse / balancer://balancer-group/
		<Proxy "balancer://balancer-group">
			BalancerMember loadfactor=4
	<IfModule mod_alias.c>
		Alias "/collaboration" "/usr/share/collaboration"
		Alias "/icons/" "/usr/share/httpd/icons/"
		Alias "/error/" "/usr/share/httpd/error/"

To make the site work on we have configured the site.php as following:

$kirby = kirby();
$kirby->urls->index = '';

Everything is working fine, only the panel doesn’t work: The page could not be found

I asked a bunch of people and professionals for help but so far nobody could give me a hint. Maybe here someone has a clue?


My idea:

Like Changing the thumbs folder I think you have to add another line:

The thumbs folder can be moved as well, but the URL must be adjusted
accordingly to make sure that thumbnails will be loaded correctly.

$kirby = kirby();
$kirby->roots->index = ???
$kirby->urls->index = '';

But I don’t know, what you have to write for “???”.

Good luck!

Hm, I don’t know if this will do the trick… I just checked this:

<? echo server::get('server_name'); ?>

Which returns I think this is the problem,…

Yep, the server name setup should normally fix the issue without additional adjustments.

But how do I fix it? Can I set the server name somehow?

Got it working!

I created another virtual host on the Synology box with a different port (:7005) with a proper name (in my case and reversed proxied to this one.

Everything is working fine, life is beautiful!

1 Like