I have set-up Mojolicious on CGI, it requires a trick that I think wasn't included in full in the Wiki or in the documentation. I will post it on Monday from work.
Basically you need to rewrite the browser URL to /cgi-bin/path/to/my_app.pl/path/of/users/browser (that is, one path appended to the other) - Alex On 10/11/18 1:37 π.μ., Dan Book wrote: > I don't know any reason to think that CGI would not be supported. It's > used automatically by having the CGI server (usually Apache) run your > script as a CGI script. The problem is that CGI does not run the event > loop, so websockets and async responses can't work. (This is also true > when using the PSGI server, used automatically under plackup.) > > -Dan > > On Fri, Nov 9, 2018 at 6:31 PM Stefan Adams <[email protected] > <mailto:[email protected]>> wrote: > > To be clear, Mojolicious can do CGI, but you need to take special > steps. Check the Cookbook or FAQ. I've not done CGI myself since > moving to Mojo 6 years ago. > > That said, be careful with it. I've seen periodic predictions that > CGI might not always be supported. > > On Fri, Nov 9, 2018, 5:20 PM Viktor Nacht <[email protected] > <mailto:[email protected]> wrote: > > Wow, I really feel stupid.. Thank you for having the patience > to reply. I've been using CGI.pm for around 22 years and > Mojolicious for 2 years. Old habits die hard, lol. > -- > You received this message because you are subscribed to the > Google Groups "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from > it, send an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to > [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google > Groups "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google > Groups "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
