<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I heard nginx is what I should be using,</FONT></DIV>
<DIV><FONT size=2>yet having an apache server makes it difficult to
setup!?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I gather if I ever ditch my CentOS & Apache
server for Amazon's cloud hosting, it's easy enough to get Ubuntu and
Nginx and stuff... (I'm speaking vaguely, as I have little idea what I'm talking
about, ^_^. I'm a newbie to Catalyst, and all of this...which is why I was
pleasantly surprised to find FastCGI and Plack allowed me to get a
Catalyst web app going on my existing Apache server relatively
easily).</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=welch.chris@gmail.com href="mailto:welch.chris@gmail.com">Chris
Welch</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=catalyst@lists.scsys.co.uk
href="mailto:catalyst@lists.scsys.co.uk">The elegant MVC web framework</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 02, 2016 10:33
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Catalyst] Feasibility
questions ref transition to Catalyst</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>
<DIV class=gmail_default
style="COLOR: rgb(0,0,102); FONT-FAMILY: 'trebuchet ms',sans-serif">I know you
folks are talking about Apache, but I've used this for nginx for static
content if it helps anyone (I think I'm an nginx convert now mainly because,
it's extremely simple for a relative Linux newbie like me):</DIV>
<DIV class=gmail_default
style="COLOR: rgb(0,0,102); FONT-FAMILY: 'trebuchet ms',sans-serif"><BR></DIV>
<DIV class=gmail_default
style="COLOR: rgb(0,0,102); FONT-FAMILY: 'trebuchet ms',sans-serif">
<DIV class=gmail_default>location /robots.txt {</DIV>
<DIV class=gmail_default> alias /path/to/robots.txt;</DIV>
<DIV class=gmail_default> expires 30d;</DIV>
<DIV class=gmail_default>}</DIV></DIV></DIV>
<DIV class=gmail_extra><BR>
<DIV class=gmail_quote>On 2 March 2016 at 10:24, Andrew <SPAN dir=ltr><<A
target=_blank
href="mailto:catalystgroup@unitedgames.co.uk">catalystgroup@unitedgames.co.uk</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>Cool, =D.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks for that.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"><SPAN
class="">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=ostmann@qe.de target=_blank href="mailto:ostmann@qe.de">QE :: Felix
Ostmann</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=catalyst@lists.scsys.co.uk target=_blank
href="mailto:catalyst@lists.scsys.co.uk">The elegant MVC web framework</A>
</DIV></SPAN><SPAN class="">
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 02, 2016 10:01
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Catalyst] Feasibility
questions ref transition to Catalyst</DIV>
<DIV><BR></DIV></SPAN>
<DIV dir=ltr>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif">Uh, i
guess in some old wiki is that already mentioned. We use this for our
static content:</DIV>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif"><BR></DIV>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif">Alias
/static/ /path/to/static/directory</DIV>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif">Alias /
/path/to/<A target=_blank
href="http://myapp_fastcgi.pl/">myapp_fastcgi.pl/</A></DIV>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif"><BR></DIV>
<DIV class=gmail_default
style="FONT-SIZE: small; FONT-FAMILY: arial,helvetica,sans-serif">And in
our app we use Static::Simple with the same directory. So while developing
only with the buildin server all works fine and later apache serves the
static content and all works fine :)</DIV></DIV>
<DIV class=gmail_extra><BR clear=all>
<DIV>
<DIV>
<DIV dir=ltr>
<DIV>
<DIV>Mit freundlichen Grüßen<BR>Felix Ostmann</DIV>
<DIV><BR></DIV>
<DIV><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">______________________________</SPAN><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">___________________</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">QE GmbH & Co.
KG</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Martinistraße 3</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">49080 Osnabrück</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Deutschland</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Tel.: <A
style="COLOR: rgb(17,85,204)" target=_blank
href="tel:%2B49%20%280%29%20541%20%2F%2040666%2011"
value="+495414066611">+49 (0) 541 / 40666 11</A></SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Fax: <A
style="COLOR: rgb(17,85,204)" target=_blank
href="tel:%2B49%20%280%29%20541%20%2F%2040666%2022"
value="+495414066622">+49 (0) 541 / 40666 22</A></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Email: <A
style="COLOR: rgb(17,85,204)" target=_blank
href="mailto:info@qe.de">info@qe.de</A></SPAN></DIV>
<DIV><FONT color=#666666>Web: <A style="COLOR: rgb(17,85,204)"
target=_blank href="http://www.qe.de/">www.qe.de</A></FONT></DIV>
<DIV><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Unsere
Geschäftszeiten:</SPAN><BR></DIV>
<DIV><SPAN style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Montag bis
Freitag von 8 bis 16 Uhr</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Firmensitz:
Osnabrück</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">AG Osnabrück - HRA
200252</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Steuer-Nr.:
66/204/54104</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Ust-IdNr.:
DE814737310</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Komplementärin:</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">QE24 GmbH</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">AG Osnabrück - HRB
200359</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Geschäftsführer: Ansas
Meyer</SPAN><BR style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">______________________________</SPAN><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">___________________</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><BR><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Die in dieser Email
enthaltenen Informationen sind vertraulich</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">zu behandeln und
ausschließlich für den Adressaten bestimmt.</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Jegliche
Veröffentlichung, Verteilung oder sonstige in diesem</SPAN><BR
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)"><SPAN
style="FONT-SIZE: 12px; COLOR: rgb(102,102,102)">Zusammenhang stehende
Handlung wird ausdrücklich untersagt.</SPAN></DIV></DIV></DIV></DIV></DIV>
<DIV>
<DIV class=h5><BR>
<DIV class=gmail_quote>2016-03-02 8:39 GMT+01:00 Andrew <SPAN
dir=ltr><<A target=_blank
href="mailto:catalystgroup@unitedgames.co.uk">catalystgroup@unitedgames.co.uk</A>></SPAN>:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Just
discovered something else that's pretty cool.<BR><BR>When setting up
FastCGI in Apache,<BR>you have something like:<BR><BR><IfModule
mod_fastcgi.c><BR>FastCgiExternalServer<BR>/home/username/public_html/myapp/script/<A
target=_blank href="http://myapp_fastcgi.pl"
rel=noreferrer>myapp_fastcgi.pl</A> -host<BR><A target=_blank
href="http://www.mydomain.com:55900"
rel=noreferrer>www.mydomain.com:55900</A><BR>Alias /
/home/username/public_html/myapp/script/<A target=_blank
href="http://myapp_fastcgi.pl/"
rel=noreferrer>myapp_fastcgi.pl/</A><BR></IfModule><BR><BR>...in
your virtual host configuation.<BR>(Because I have CPanel on my Apache
server, I'm not editing the httpd.conf<BR>file directly. Rather the
httpd.conf file links to some include files, so I<BR>just edit the
include files.)<BR><BR>I realised the Alias bit, was making any URL from
the domain name, go to the<BR>Catalyst Web App.<BR>However.... I had a
few old CGIs I wanted to run.<BR>I played about a bit, trying to copy
and paste the CGI code into a new<BR>Catalyst Controller... but I
thought: "This is too much work".<BR><BR>The CGIs I wanted to run were
in a directory - let's pretend the directory<BR>was literally called
"directory".<BR>I added a new Alias line to this part of the Apache
configuration:<BR><BR><IfModule
mod_fastcgi.c><BR>FastCgiExternalServer<BR>/home/username/public_html/myapp/script/<A
target=_blank href="http://myapp_fastcgi.pl"
rel=noreferrer>myapp_fastcgi.pl</A> -host<BR><A target=_blank
href="http://www.mydomain.com:55900"
rel=noreferrer>www.mydomain.com:55900</A><BR>Alias /directory
/home/username/public_html/directory<BR>Alias /
/home/username/public_html/myapp/script/<A target=_blank
href="http://myapp_fastcgi.pl/"
rel=noreferrer>myapp_fastcgi.pl/</A><BR></IfModule><BR><BR>.....Now...if
the url is <A target=_blank href="http://www.mydomain.com/directory"
rel=noreferrer>www.mydomain.com/directory</A> it goes to the
directory<BR>folder in my public_html folder, and serves it just as
apache always did,<BR>including running the <A target=_blank
href="http://index.pl" rel=noreferrer>index.pl</A> file I had there - a
cgi perl script no less!<BR>Everything else starting with <A
target=_blank href="http://www.mydomain.com"
rel=noreferrer>www.mydomain.com</A> gets sent to my new Catalyst<BR>Web
App.<BR><BR>In short - you can setup apache aliases, to still run some
CGIs in specific<BR>places, while all other URLs run your new Catalyst
Web App, =).<BR><BR>That means you can have old CGI scripts and your new
Catalyst web app,<BR>running at the same domain name.<BR>As long as
there's no conflict of names. I.e. any Catalyst subroutine<BR>designed
to be triggered by the 'directory' path, won't get triggered,
as<BR>you've redirected all such requests to your directory folder
instead.<BR><BR>I simply added a one line alias to achieve this. If
there are better ways to<BR>run your old CGIs on the same server as your
new Catalyst app, I'm happy to<BR>hear suggestions, =).<BR><BR>One idea
that popped into my head was to maybe setup a subdomain that
isn't<BR>setup with fastcgi, and have all your old CGIs at the sub
domain, running as<BR>they normally would, on what's a normal apache
subdomain. And then have your<BR>Catalyst web app running at the normal
web domain.<BR>So if your CGIs were part of your old website,<BR>you
could have your new catalyst website at <A target=_blank
href="http://www.mydomain.com"
rel=noreferrer>http://www.mydomain.com</A> and your<BR>old cgi website
at <A target=_blank href="http://old.mydomain.com"
rel=noreferrer>http://old.mydomain.com</A><BR>Then you wouldn't have the
conflict of names problem.<BR><A target=_blank
href="http://www.mydomain.com/directory"
rel=noreferrer>http://www.mydomain.com/directory</A><BR>and<BR><A
target=_blank href="http://old.mydomain.com/directory"
rel=noreferrer>http://old.mydomain.com/directory</A><BR>...could both
give different responses.<BR><BR>Some food for thought,
=).<BR><BR>Yours,<BR>Andrew.<BR>
<DIV>
<DIV><BR><BR><BR>----- Original Message -----<BR>From: "Tom Browder"
<<A target=_blank
href="mailto:tom.browder@gmail.com">tom.browder@gmail.com</A>><BR>To:
"The elegant MVC web framework" <<A target=_blank
href="mailto:catalyst@lists.scsys.co.uk">catalyst@lists.scsys.co.uk</A>><BR>Sent:
Wednesday, February 17, 2016 8:20 PM<BR>Subject: Re: [Catalyst]
Feasibility questions ref transition to Catalyst<BR><BR><BR>On Wed, Feb
17, 2016 at 10:03 AM, Andrew<BR><<A target=_blank
href="mailto:catalystgroup@unitedgames.co.uk">catalystgroup@unitedgames.co.uk</A>>
wrote:<BR>><BR>> 1. Is possible to move to Catalyst
incrementally? In other words, can I<BR>> start deploying
Catalyst using at least some of my existing static code?<BR>><BR>>
---> I'm new to Catalyst, and have found, although as a framework, it
sets<BR>> up a structure in terms of folders and where scripts are, I
can pretty<BR>much<BR>...<BR><BR>Good information,
Andrew--thanks!<BR><BR>> ---> As a n00b, forgive me for not being
sure what you mean by virtual<BR>> hosts. I've managed to get
everything working on a VPS from a web hosting<BR><BR>What I meant was I
run multiple hosts (known as virtual hosts) on a<BR>single instance of
Apache on a single server. Your operation on a<BR>shared host is
similar, so your answer was helpful.<BR><BR>Thanks so
much.<BR><BR>Best,<BR><BR>-Tom<BR><BR>_______________________________________________<BR>List:
<A target=_blank
href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</A><BR>Listinfo:
<A target=_blank
href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"
rel=noreferrer>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</A><BR>Searchable
archive: <A target=_blank
href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"
rel=noreferrer>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>Dev
site: <A target=_blank href="http://dev.catalyst.perl.org/"
rel=noreferrer>http://dev.catalyst.perl.org/</A><BR><BR><BR>_______________________________________________<BR>List:
<A target=_blank
href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</A><BR>Listinfo:
<A target=_blank
href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"
rel=noreferrer>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</A><BR>Searchable
archive: <A target=_blank
href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"
rel=noreferrer>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>Dev
site: <A target=_blank href="http://dev.catalyst.perl.org/"
rel=noreferrer>http://dev.catalyst.perl.org/</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV>
<P></P>
<HR>
<SPAN class="">
<P></P>_______________________________________________<BR>List: <A
target=_blank
href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</A><BR>Listinfo:
<A target=_blank
href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</A><BR>Searchable
archive: <A target=_blank
href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>Dev
site: <A target=_blank
href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</A><BR></SPAN>
<P></P></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>List:
<A
href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</A><BR>Listinfo:
<A target=_blank
href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"
rel=noreferrer>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</A><BR>Searchable
archive: <A target=_blank
href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"
rel=noreferrer>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>Dev
site: <A target=_blank href="http://dev.catalyst.perl.org/"
rel=noreferrer>http://dev.catalyst.perl.org/</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>List:
Catalyst@lists.scsys.co.uk<BR>Listinfo:
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<BR>Searchable
archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<BR>Dev site:
http://dev.catalyst.perl.org/<BR></BLOCKQUOTE></BODY></HTML>