<!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></FONT> </DIV>
<DIV><FONT size=2>In the end, although it's off-topic from
Catalyst,</FONT></DIV>
<DIV><FONT size=2>I found what I was really after in apache was:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>FallbackResource /path/to/catalystapp_fastcgi.pl/</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>...instead of the Alias to my catalyst app.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>As in:</FONT></DIV>
<DIV><FONT size=2><IfModule mod_fastcgi.c><BR>FastCgiExternalServer
/home/username/public_html/myapp/script/myapp_fastcgi.pl -host </FONT><A
href="http://www.mydomain.com:56000"><FONT
size=2>www.mydomain.com:56000</FONT></A><BR><FONT size=2>FallbackResource
/myapp/script/myapp_fastcgi.pl/<BR></IfModule></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>That would mean it would try and see if a file or directory of
the same name as that being requested existed, and only if there was no such
file or directory, would it pass the request on to my app.</FONT></DIV>
<DIV><FONT size=2>I.e. all existing cgis and static content are served as they
ever were, and any other requests gets dealt with by the catalyst
app.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Things got complicated when the path and file weren't in the
public_html folder however - as:</FONT></DIV>
<DIV><FONT size=2>FallbackResource /somethinggoeshere</FONT></DIV>
<DIV><FONT size=2>essentially translates to <A
href="http://www.mydomain.com/somethinggoeshere">www.mydomain.com/somethinggoeshere</A></FONT></DIV>
<DIV><FONT size=2>...so it becomes impossible to actually specify a folder
outside of the public html directory.</FONT></DIV>
<DIV><FONT size=2>(Unless because I'm new to apache, I'm missing
something?)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>When my Catalyst app wasn't in public_html, and was instead at
/home/username/myapp/script/myapp_fastcgi.pl</FONT></DIV>
<DIV><FONT size=2>I used:</FONT></DIV>
<DIV><FONT size=2><IfModule mod_fastcgi.c><BR>FastCgiExternalServer
/home/username/public_html/myapp_fastcgi.pl -host <A
href="http://www.mydomain.com:56000">www.mydomain.com:56000</A><BR>FallbackResource
/myapp_fastcgi.pl/<BR></IfModule></FONT></DIV>
<DIV><FONT size=2>I get away with the first line, because FastCgiExternalServer
doesn't actually need the file mentioned to exist - only the path needs to be
real.</FONT></DIV>
<DIV><FONT size=2>However, the FallbackResource bit</FONT><FONT size=2> didn't
actually work, until I put a file called myapp_fastcgi.pl in the public_html
directory.</FONT></DIV>
<DIV><FONT size=2>It didn't have to have anything in it - I used a blank text
file, and renamed it.</FONT></DIV>
<DIV><FONT size=2>Bit annoying though. Don't know if I'm missing something, and
there's a way of feeding a path to FallbackResource that isn't public
html.</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">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=catalystgroup@unitedgames.co.uk
href="mailto:catalystgroup@unitedgames.co.uk">Andrew</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 6:14
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Catalyst] Feasibility
questions ref transition to Catalyst</DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><FONT
size=2></FONT><FONT size=2></FONT><BR></DIV>
<DIV><FONT size=2>I've just seen something similar on page 115 of The
Definitive Guide to Catalyst.</FONT></DIV>
<DIV><FONT size=2>I will look into this further...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>'Cos atm, I've just got one directory working, but I pretty
much want the entirety of public_html (all its files and subfolders, etc) back
up as my static content, and I wonder if this is a way to do
it...?</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=ostmann@qe.de 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
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:01
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="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 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 class=gmail_signature>
<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><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 class=HOEnZb>
<DIV class=h5><BR><BR><BR>----- Original Message -----<BR>From: "Tom
Browder" <<A
href="mailto:tom.browder@gmail.com">tom.browder@gmail.com</A>><BR>To:
"The elegant MVC web framework" <<A
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
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
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
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>
<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>
<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>