|
From: Kilponen P. <pek...@ja...> - 2008-06-24 15:37:22
|
Hello,
I got squid working now, with a slightly modified script.
It was missing a group and others' execute bit in rewrite proc,
stupid error sorry.
So I stick with squid now.
The rewrite script is now like this:
#!/usr/bin/perl -p
BEGIN { $|=1; }
s%^http://www.company.com%http://www.company.vpn% && next;
One line can be added per backend
Brgs, Pekka
> -----Original Message-----
> From: dev...@li... [mailto:devil-
> lin...@li...] On Behalf Of Kilponen
> Pekka
> Sent: 24. kesäkuuta 2008 16:32
> To: dev...@li...
> Subject: Re: [Devil-Linux-discuss] Reverse Proxying with Devil Linux
>
> Thanks Björn,
>
> My needs are very similar than you have,
> one http address (no ssl though) serves external network using
> multiple backend servers from internal network like they were
> in one server. Reverse proxy and url rewriting.
> Different backends for each urlgroup.
>
> However our system is not an enterprise level critical system,
> so I would like stick into simpler solutions. Earlier I used pound and
> I liked
> it because it is so simple and nothing more than what I needed.
>
> However if your system is easy to setup and administrated
> - high-availability would not hurt.
>
> Regards,
>
> Pekka Kilponen
>
> From: dev...@li... [mailto:devil-
> lin...@li...] On Behalf Of "Rudner,
> Björn"
> Sent: 24. kesäkuuta 2008 12:26
> To: dev...@li...
> Subject: Re: [Devil-Linux-discuss] Reverse Proxying with Devil Linux
>
> Hello Pecca,
>
> I'm using reverse-Proxy Loadbalanced with heartbeat and ldirector based
> on Devil-Linux now since some years.
>
> In the beginning I also tried pound and had some custom build including
> it.
>
> I never really got lucky with pound since there where some things
> missing I really needed so I finally got to Apache (using worker MPM,
> mod_proxy, mod_proxy_balancer, and the Caching (mainly Disk-Caching
> since Memcaching had some strange errors in the beginning)
>
> I never had tested squid, so I cant tell something about that.
>
> What I needed was:
>
> Have one Domain: www.example.tld with SSL
> have multiple Applications accessible from that domain:
>
> https://www.example.tld/App1 goes to an IIS-Backend-Server
> https://www.example.tld/App2 goes to an Apache-Backend-Server
> (Loadbalanced on 4 App-Servers)
> https://www.example.tld/App3 goes to an Servlet-Server
>
> and so on ...
>
> If this is kind of what you need I could show you what I have done to
> get this running solid and fast.
>
> I'm unsing an custom-build DL 1.3.x with 2 Nodes:
> shorewall - host-firewall
> heartbeat / ldirector - failover + active/passive loadbalancing
> (routed)
> apache (worker) - active/active loadbalancing, session-sticky for both
> cluster-nodes, SSL-Breakup and proxieing to different Applications and
> different App-Servers, local disk-Caching.
>
>
>
> Mit freundlichen Grüßen/Kind regards,
>
> Björn Rudner
> Administrator
>
> phone: +49 (89) 930 839-16
> pers. fax.: 01805-456 987-200 16
> mobile: +49 (151) 121 623 71
> e-mail: br...@ba...
> ________________________________________
> Von: dev...@li... [devil-linux-
> dis...@li...] im Auftrag von Kilponen Pekka
> [pek...@ja...]
> Gesendet: Dienstag, 24. Juni 2008 09:59
> An: dev...@li...
> Betreff: [Devil-Linux-discuss] Reverse Proxying with Devil Linux
> Hello,
>
> I would like to build a reverse proxy with Devil-Linux. I currently run
> version 1.2.13.
>
> I tried it with squid:
> - Errors with url rewriter proc, they keep crashing. My url rewriter
> proc is a simple perl script that
> works on commandline as planned. From squid result is this :
> "FATAL: The url_rewriter helpers are crashing too rapidly, need help!"
>
> Script is simple:
>
> #!/usr/bin/perl -w
> $|=1;
> use strict;
>
> while (<>) {
> s[^http://test.company.com/]
> [http://internal.company.vpn/];
> print;
> }
>
> I cannot figure out why this simple script keeps crashing when it is
> run by squid but works on
> command line.
>
> Next I tried with apache:
> - mod_proxy_html is missing, it is needed at least in examples shown in
> http://www.apachetutor.org/admin/reverseproxies .
>
> Earlier I had a separate computer that had pound
> http://www.apsis.ch/pound running.
> Pound is not included in Devil-Linux. Pound, I think would be the
> simples and cleanest alternative,
> running reverse proxy with squid or apache is like using 1% of their
> functions.
> Pound is simply just what reverse proxy is. (Including load balancer
> too).
>
> What kind of solutions you have implemented when you do reverse proxy
> on Devil-Linux?
>
> Best Regards,
> Pekka Kilponen
>
>
>
> -----------------------------------------------------------------------
> --
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Devil-linux-discuss mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss
> ________________________________________
> baulogis GmbH
> Zamdorfer Str. 100
> 81677 München / Munich
> Deutschland / Germany
> www.baulogis.com
> Geschäftsführer / Managing Director: Thomas Bachmaier
> HRB 133832, Amtsgericht München
> Ust-ID: DE 212 020 193
> Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den
> bezeichneten Adressaten (dev...@li...)
> bestimmt.
> Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen
> Vertreter sein sollten, so beachten Sie bitte, dass jede Form der
> Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Wiedergabe des
> Inhalts dieser E-Mail unzulässig ist.
> Bitte setzen Sie sich in diesem Fall mit dem Absender der E-Mail in
> Verbindung (br...@ba...).
>
> -----------------------------------------------------------------------
> --
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Devil-linux-discuss mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss
|