Note that there are some explanatory texts on larger screens.

plurals
  1. POPerl-Starman (PSGI) + PHP = Apache2 proxy setup? - How to do?
    text
    copied!<p>How to run together: PSGI and PHP?</p> <p>I have Perl/PSGI application (running under pure perl Starman server). Now, for some reason need run one PHP application too ;(, so (probably) need Apache2. Questions:</p> <ul> <li>really need Apache for PHP? or exists some other solution?</li> <li>How to setup reverse proxy, so when someone will go to http: //mysite/myapp/something, will be proxied to Starman where my PSGI "myapp" living? and</li> <li>http: //mysite/phpapp/anything - will go to php app...</li> <li>I can setup the Starman server for listening on another port, e.g. 8080, but want access both applications at port:80 - so need reverse proxy.</li> </ul> <p>Plus:</p> <p>the server is behind my home NAT router. Internal server has address: 192.168.1.10, from the outside, ofc, the router have correct internet address. I have redirected all traffic </p> <pre><code>routerIP:80 -&gt; 192.168.1.10:80 </code></pre> <ul> <li>What is best way achieve access to both applications: PSGI + PHP from the both side (internet + "intranet") at the port:80?</li> <li>Need setup some virtual hosts? Or exists some really simple solution?</li> <li>some links to helpful guidelines shoudl help a lot too..</li> </ul> <p>Ps: I don't need optimize performance, the server is only for home/demo/testing purpose.</p> <p><em>EDIT: Now, in another similar situation I checked CPAN again and based on @rawhide's answer I found the <a href="http://search.cpan.org/~kazeburo/Plack-App-PHPCGI-0.03/lib/Plack/App/PHPCGI.pm" rel="nofollow">Plack::App::PHPCGI</a> module. Works great - it is <strong>really cool</strong> testing php apps under plackup... ;)</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload