[squid-users] Presenting an internal virtual host externally as domain root folder (Amos Jeffries)

Arjen van der Meer arjen at arjenvandermeer.eu
Fri Aug 14 08:57:52 UTC 2015

Good morning Amos,

And thanks for your reply. But I think this is what I already have configured, unless you notice errors in the following configuration:

acl wordpress urlpath_regex ^/wordpress

cache_peer parent 80 0 no-query originserver name=ubuntu
cache_peer_access ubuntu deny wordpress

cache_peer parent 80 0 no-query originserver name=diskstation
cache_peer_access diskstation allow wordpress
cache_peer_access diskstation deny all

acl arjenvandermeer_acl dstdomain .arjenvandermeer.eu
http_access allow arjenvandermeer_acl
cache_peer_access ubuntu allow arjenvandermeer_acl
cache_peer_access diskstation allow arjenvandermeer_acl

And this works fine, but it only makes www.arjenvandermeer.eu/wordpress available which is just part of what I want. What I'd like is this website to be externally available as www.arjenvandermeer.eu without rewrite or redirect, while having www.arjenvandermeer.eu/zm and several other sites still available on my Ubuntu system.

Kind regards,



Message: 5
Date: Fri, 14 Aug 2015 03:24:31 +1200
From: Amos Jeffries <squid3 at treenet.co.nz>
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] Presenting an internal virtual host
	externally as domain root folder
Message-ID: <55CCB6AF.3000102 at treenet.co.nz>
Content-Type: text/plain; charset=utf-8

On 14/08/2015 12:55 a.m., Arjen van der Meer wrote:
> Since a couple of months I have installed and configured squid on my
> raspberry pi with raspbian and most things I like to work do! One thing
> however I can't get to work. Not even with the help of what I found on the
> internet so far. That is that I like to present my internal wordpress on my
> diskstation as the domain root on the outside. I want my internal
> to be available on the outside as
> www.arjenvandermeer.eu/ without anything else. I have only one external IP
> address so I need to use something like squid to make both my Ubuntu system
> and the Synology available on the outside. I could use a rewriter or a
> redirect to add the /wordpress part but it is much neater if my internal
> /wordpress can present itself as domain root on the outside. My Cisco router
> port forwards http and ssl to my pi lan ip from where squid picks it up.
> Can this be done (with squid) and if so please help me out or point me to
> some matching examples.

What you seek is written at the bottom of this page:



More information about the squid-users mailing list