<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;color:rgb(0,0,102)">I know you folks are talking about Apache, but I&#39;ve used this for nginx for static content if it helps anyone (I think I&#39;m an nginx convert now mainly because, it&#39;s extremely simple for a relative Linux newbie like me):</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;color:rgb(0,0,102)"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;color:rgb(0,0,102)"><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">&lt;<a href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">catalystgroup@unitedgames.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" href="mailto:ostmann@qe.de" target="_blank">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" target="_blank">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 href="http://myapp_fastcgi.pl/" target="_blank">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 &amp; 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)" href="tel:%2B49%20%280%29%20541%20%2F%2040666%2011" value="+495414066611" target="_blank">+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)" href="tel:%2B49%20%280%29%20541%20%2F%2040666%2022" value="+495414066622" target="_blank">+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)" href="mailto:info@qe.de" target="_blank">info@qe.de</a></span></div>
  <div><font color="#666666">Web: <a style="COLOR:rgb(17,85,204)" href="http://www.qe.de/" target="_blank">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">&lt;<a href="mailto:catalystgroup@unitedgames.co.uk" target="_blank">catalystgroup@unitedgames.co.uk</a>&gt;</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&#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>
    <div><br><br><br>----- Original Message -----<br>From: &quot;Tom 
    Browder&quot; &lt;<a href="mailto:tom.browder@gmail.com" target="_blank">tom.browder@gmail.com</a>&gt;<br>To: 
    &quot;The elegant MVC web framework&quot; &lt;<a href="mailto:catalyst@lists.scsys.co.uk" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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></div></div>
  <p>
  </p><hr><span class="">

  <p></p>_______________________________________________<br>List: 
  <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>Listinfo: 
  <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" 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/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: 
  <a href="http://dev.catalyst.perl.org/" target="_blank">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 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></blockquote></div><br></div>