<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Alias /static/ /path/to/static/directory</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Alias / /path/to/<a href="http://myapp_fastcgi.pl/">myapp_fastcgi.pl/</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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="color:rgb(102,102,102);font-size:12.8000001907349px">______________________________</span><span style="color:rgb(102,102,102);font-size:12.8000001907349px">___________________</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">QE GmbH &amp; Co. KG</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Martinistraße 3</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">49080 Osnabrück</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Deutschland</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Tel.: <a href="tel:%2B49%20%280%29%20541%20%2F%2040666%2011" value="+495414066611" style="color:rgb(17,85,204)" target="_blank">+49 (0) 541 / 40666 11</a></span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Fax: <a href="tel:%2B49%20%280%29%20541%20%2F%2040666%2022" value="+495414066622" style="color:rgb(17,85,204)" target="_blank">+49 (0) 541 / 40666 22</a></span></div><div><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Email: <a href="mailto:info@qe.de" style="color:rgb(17,85,204)" target="_blank">info@qe.de</a></span></div><div><font color="#666666">Web: <a href="http://www.qe.de/" style="color:rgb(17,85,204)" target="_blank">www.qe.de</a></font></div><div><span style="color:rgb(102,102,102);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Unsere Geschäftszeiten:</span><br></div><div><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Montag bis Freitag von 8 bis 16 Uhr</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Firmensitz: Osnabrück</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">AG Osnabrück - HRA 200252</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Steuer-Nr.: 66/204/54104</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Ust-IdNr.: DE814737310</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Komplementärin:</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">QE24 GmbH</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">AG Osnabrück - HRB 200359</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Geschäftsführer: Ansas Meyer</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">______________________________</span><span style="color:rgb(102,102,102);font-size:12.8000001907349px">___________________</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><br><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Die in dieser Email enthaltenen Informationen sind vertraulich</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">zu behandeln und ausschließlich für den Adressaten bestimmt.</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">Jegliche Veröffentlichung, Verteilung oder sonstige in diesem</span><br style="color:rgb(102,102,102);font-size:12.8000001907349px"><span style="color:rgb(102,102,102);font-size:12.8000001907349px">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">&lt;<a href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">catalystgroup@unitedgames.co.uk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just discovered something else that&#39;s pretty cool.<br>
<br>
When setting up FastCGI in Apache,<br>
you have something like:<br>
<br>
&lt;IfModule mod_fastcgi.c&gt;<br>
FastCgiExternalServer<br>
/home/username/public_html/myapp/script/<a href="http://myapp_fastcgi.pl" rel="noreferrer" target="_blank">myapp_fastcgi.pl</a> -host<br>
<a href="http://www.mydomain.com:55900" rel="noreferrer" target="_blank">www.mydomain.com:55900</a><br>
Alias / /home/username/public_html/myapp/script/<a href="http://myapp_fastcgi.pl/" rel="noreferrer" target="_blank">myapp_fastcgi.pl/</a><br>
&lt;/IfModule&gt;<br>
<br>
...in your virtual host configuation.<br>
(Because I have CPanel on my Apache server, I&#39;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: &quot;This is too much work&quot;.<br>
<br>
The CGIs I wanted to run were in a directory - let&#39;s pretend the directory<br>
was literally called &quot;directory&quot;.<br>
I added a new Alias line to this part of the Apache configuration:<br>
<br>
&lt;IfModule mod_fastcgi.c&gt;<br>
FastCgiExternalServer<br>
/home/username/public_html/myapp/script/<a href="http://myapp_fastcgi.pl" rel="noreferrer" target="_blank">myapp_fastcgi.pl</a> -host<br>
<a href="http://www.mydomain.com:55900" rel="noreferrer" target="_blank">www.mydomain.com:55900</a><br>
Alias /directory /home/username/public_html/directory<br>
Alias / /home/username/public_html/myapp/script/<a href="http://myapp_fastcgi.pl/" rel="noreferrer" target="_blank">myapp_fastcgi.pl/</a><br>
&lt;/IfModule&gt;<br>
<br>
.....Now...if the url is <a href="http://www.mydomain.com/directory" rel="noreferrer" target="_blank">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 href="http://index.pl" rel="noreferrer" target="_blank">index.pl</a> file I had there - a cgi perl script no less!<br>
Everything else starting with <a href="http://www.mydomain.com" rel="noreferrer" target="_blank">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&#39;s no conflict of names. I.e. any Catalyst subroutine<br>
designed to be triggered by the &#39;directory&#39; path, won&#39;t get triggered, as<br>
you&#39;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&#39;m happy to<br>
hear suggestions, =).<br>
<br>
One idea that popped into my head was to maybe setup a subdomain that isn&#39;t<br>
setup with fastcgi, and have all your old CGIs at the sub domain, running as<br>
they normally would, on what&#39;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 href="http://www.mydomain.com" rel="noreferrer" target="_blank">http://www.mydomain.com</a> and your<br>
old cgi website at <a href="http://old.mydomain.com" rel="noreferrer" target="_blank">http://old.mydomain.com</a><br>
Then you wouldn&#39;t have the conflict of names problem.<br>
<a href="http://www.mydomain.com/directory" rel="noreferrer" target="_blank">http://www.mydomain.com/directory</a><br>
and<br>
<a href="http://old.mydomain.com/directory" rel="noreferrer" target="_blank">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: &quot;Tom Browder&quot; &lt;<a href="mailto:tom.browder@gmail.com">tom.browder@gmail.com</a>&gt;<br>
To: &quot;The elegant MVC web framework&quot; &lt;<a href="mailto:catalyst@lists.scsys.co.uk">catalyst@lists.scsys.co.uk</a>&gt;<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>
&lt;<a href="mailto:catalystgroup@unitedgames.co.uk">catalystgroup@unitedgames.co.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; 1.  Is possible to move to Catalyst incrementally?  In other words, can I<br>
&gt; start deploying Catalyst using at least some of my existing static code?<br>
&gt;<br>
&gt; ---&gt; I&#39;m new to Catalyst, and have found, although as a framework, it sets<br>
&gt; 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>
&gt; ---&gt; As a n00b, forgive me for not being sure what you mean by virtual<br>
&gt; hosts. I&#39;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 href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">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 href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br></div>