Search squid archive

Re: Presenting an internal virtual host externally as domain root folder (Amos Jeffries)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 192.168.1.150 parent 80 0 no-query originserver name=ubuntu
cache_peer_access ubuntu deny wordpress

cache_peer 192.168.1.153 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,

Arjen

------------------------------

Message: 5
Date: Fri, 14 Aug 2015 03:24:31 +1200
From: Amos Jeffries <squid3@xxxxxxxxxxxxx>
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Presenting an internal virtual host
	externally as domain root folder
Message-ID: <55CCB6AF.3000102@xxxxxxxxxxxxx>
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
> http://192.168.1.153/wordpress 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:
<http://wiki.squid-cache.org/ConfigExamples/Reverse/MultipleWebservers>


Amos



------------------------------

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux