Re: Best way to setup with apache?
Jonathan Swartz <[email protected]> Wed, 13 Aug 2014 12:41:12 -0700
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3260027864704226529== Content-Type: multipart/alternative; boundary="Apple-Mail=_C6C1C99F-7957-45CA-AD3B-7BC1925A33D4" --Apple-Mail=_C6C1C99F-7957-45CA-AD3B-7BC1925A33D4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Best way is to run a reverse-proxy (like nginx) on port 80, then starman = can run on a regular port. You can find lots of examples around of this = I=92m sure. On Aug 13, 2014, at 12:24 PM, James Orr <[email protected]> wrote: > Sorry, I dropped the list from my reply before. >=20 > Tried starman again, must have had something wrong before because I = now get around 4.5 seconds on that page. >=20 > I'll have to look into how to configure it though, because it's = currently running as root so it can use port 80, which doesn't seem like = a good idea at all. >=20 >=20 > On Wed, Aug 13, 2014 at 2:53 PM, James Orr <[email protected]> = wrote: > I'm open to it. I briefly tried starman, I have one page that's = taking about 7 seconds to load in apache and under starman it took 30 = seconds, but maybe I didn't set something up quite right? >=20 > At the moment this server is only running one site, but it's possible = more may be added so I would need something akin to apache's = virtualhosts. That's not a deal-breaker for this as it's a personal = project, but if I move over some of my mason 1 work projects to mason 2 = it will definitely be required. >=20 >=20 > On Wed, Aug 13, 2014 at 2:49 PM, Jonathan Swartz <[email protected]> = wrote: > Any particular reason you need to keep using Apache, as opposed to = (say) Starman? >=20 > Sorry, I don=92t normally like to answer questions that way :), it=92s = just that most people using PSGI/Plack seemed to have migrated away from = Apache for the backend process. >=20 > On Aug 13, 2014, at 11:09 AM, James Orr <[email protected]> wrote: >=20 > > I'm currently using Plack::Handler::Apache2, but I'm getting some = intermittent errors ... > > > > Can't get the name of an anonymous package at = /usr/lib/perl5/Class/MOP/Package.pm line 243. > > > > I've seen some stuff about mod_psgi but google doesn't turn up much = about it, and it's not a package available through apt-get. > > > > > > = --------------------------------------------------------------------------= ---- > > _______________________________________________ > > Mason-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/mason-users >=20 >=20 >=20 --Apple-Mail=_C6C1C99F-7957-45CA-AD3B-7BC1925A33D4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Best = way is to run a reverse-proxy (like nginx) on port 80, then starman can = run on a regular port. You can find lots of examples around of this I=92m = sure.<div><br><div><div>On Aug 13, 2014, at 12:24 PM, James Orr <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><blockquote = type=3D"cite"><div dir=3D"ltr">Sorry, I dropped the list from my reply = before.<div><br></div><div>Tried starman again, must have had something = wrong before because I now get around 4.5 seconds on that = page.</div><div><br></div><div>I'll have to look into how to configure = it though, because it's currently running as root so it can use port 80, = which doesn't seem like a good idea at all.</div> </div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On = Wed, Aug 13, 2014 at 2:53 PM, James Orr <span dir=3D"ltr"><<a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">I'm = open to it. I briefly tried starman, I have one page that's taking = about 7 seconds to load in apache and under starman it took 30 seconds, = but maybe I didn't set something up quite right?<div> <br></div><div>At the moment this server is only running one site, but = it's possible more may be added so I would need something akin to = apache's virtualhosts. That's not a deal-breaker for this as it's = a personal project, but if I move over some of my mason 1 work projects = to mason 2 it will definitely be required.</div> </div><div class=3D"HOEnZb"><div class=3D"h5"><div = class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed, Aug 13, = 2014 at 2:49 PM, Jonathan Swartz <span dir=3D"ltr"><<a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex">Any particular reason = you need to keep using Apache, as opposed to (say) Starman?<br> <br> Sorry, I don=92t normally like to answer questions that way :), it=92s = just that most people using PSGI/Plack seemed to have migrated away from = Apache for the backend process.<br> <div><br> On Aug 13, 2014, at 11:09 AM, James Orr <<a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<br> <br> > I'm currently using Plack::Handler::Apache2, but I'm getting some = intermittent errors ...<br> ><br> > Can't get the name of an anonymous package at = /usr/lib/perl5/Class/MOP/Package.pm line 243.<br> ><br> > I've seen some stuff about mod_psgi but google doesn't turn up much = about it, and it's not a package available through apt-get.<br> ><br> ><br> </div>> = --------------------------------------------------------------------------= ----<br> > _______________________________________________<br> > Mason-users mailing list<br> > <a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/mason-users" = target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/mason-users= </a><br> <br> </blockquote></div><br></div> </div></div></blockquote></div><br></div> </blockquote></div><br></div></body></html>= --Apple-Mail=_C6C1C99F-7957-45CA-AD3B-7BC1925A33D4-- --===============3260027864704226529== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============3260027864704226529== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users --===============3260027864704226529==--