deploy basex webapp to a linux / apache envinroment?
Wednesday, 7 November 2012 · 5 messages · last reply 8 Nov 2012
DK
Hi Colin,
this heavily depends on your application. If you really just need BaseX (e.g. you run some RestXQ application) there should be no reason why not to use solely BaseX and run it on port 80. However, if you need something more, which is quite likely, it might be wise (and I would recommend doing so as it adds some flexibility) to run some HTTP server or reverse proxy.
If you want to run Apache or nginx again heavily depends on your needs. Apache is a full-blown HTTP server and very powerful whereas nginx is quite small and very fast. We recently used nginx as reverse proxy to scale to several BaseX instances, which worked really well. So this gives you also the opportunity to scale your application depending on the server load.
Cheers,
Dirk
On Wed, Nov 7, 2012 at 9:57 PM, Colin McEnearney
<colinmcenearney at gmail.com>wrote:
Quoted text · Colin McEnearney · 21 lines
> Hi, > > Can anyone point to some help with deploying a basex webapp to a linux / > apache envinroment? > > I don't have much experience with Apache config. Is it best to leave basex > running on port 8984 and proxy the port 80 requests? Or to config basex to > operate on port 80? > > Any info on this topic is greatly appreciated. I wonder if maybe it's > easier to run something else altogether, such as nginx? > > Thanks, > Colin > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
--
Dirk Kirsten, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
CM
Colin McEnearney7 Nov 2012 22:57 #
Hi,
Can anyone point to some help with deploying a basex webapp to a linux / apache envinroment?
I don't have much experience with Apache config. Is it best to leave basex running on port 8984 and proxy the port 80 requests? Or to config basex to operate on port 80?
Any info on this topic is greatly appreciated. I wonder if maybe it's easier to run something else altogether, such as nginx?
Thanks,
Colin
CM
Thanks Dirk.
This is specifically in regards to a Dreamhost VPS with many domains on it, several using php and wordpress which I just learned relies on .htaccess for its permalinks... (so no nginx (I think ) )
I have put off this day for as long as possible, but I think I have to roll up my sleeves and learn how to configure mod_proxy for Apache
Quoted text · Dirk Kirsten · 52 lines
On Wed, Nov 7, 2012 at 4:26 PM, Dirk Kirsten <dk at basex.org> wrote: > Hi Colin, > > this heavily depends on your application. If you really just need BaseX > (e.g. you run some RestXQ application) there should be no reason why not to > use solely BaseX and run it on port 80. However, if you need something > more, which is quite likely, it might be wise (and I would recommend doing > so as it adds some flexibility) to run some HTTP server or reverse proxy. > > If you want to run Apache or nginx again heavily depends on your needs. > Apache is a full-blown HTTP server and very powerful whereas nginx is quite > small and very fast. We recently used nginx as reverse proxy to scale to > several BaseX instances, which worked really well. So this gives you also > the opportunity to scale your application depending on the server load. > > Cheers, > Dirk > > > On Wed, Nov 7, 2012 at 9:57 PM, Colin McEnearney < > colinmcenearney at gmail.com> wrote: > >> Hi, >> >> Can anyone point to some help with deploying a basex webapp to a linux / >> apache envinroment? >> >> I don't have much experience with Apache config. Is it best to leave >> basex running on port 8984 and proxy the port 80 requests? Or to config >> basex to operate on port 80? >> >> Any info on this topic is greatly appreciated. I wonder if maybe it's >> easier to run something else altogether, such as nginx? >> >> Thanks, >> Colin >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> > > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >
CM
Colin McEnearney8 Nov 2012 21:39 #
Hi Dirk (or anyone),
Would you mind showing me your config, or similar, for serving a basex webapp with nginx?
I've got this atm, not working yet:
index index.xq index.xqy index.xquery index.html;
server { # simple reverse-proxy
listen 80;
server_name domain.com www.domain.com;
access_log logs/domain.com.access.log main;
# pass requests for content to basex
location / {
proxy_pass http://127.0.0.1:8984;
}
}On Wed, Nov 7, 2012 at 5:08 PM, Colin McEnearney
<colinmcenearney at gmail.com>wrote:
Quoted text · Colin McEnearney · 67 lines
> Thanks Dirk. > > This is specifically in regards to a Dreamhost VPS with many domains on > it, several using php and wordpress which I just learned relies on > .htaccess for its permalinks... (so no nginx (I think ) ) > > I have put off this day for as long as possible, but I think I have to > roll up my sleeves and learn how to configure mod_proxy for Apache > > > > > On Wed, Nov 7, 2012 at 4:26 PM, Dirk Kirsten <dk at basex.org> wrote: > >> Hi Colin, >> >> this heavily depends on your application. If you really just need BaseX >> (e.g. you run some RestXQ application) there should be no reason why not to >> use solely BaseX and run it on port 80. However, if you need something >> more, which is quite likely, it might be wise (and I would recommend doing >> so as it adds some flexibility) to run some HTTP server or reverse proxy. >> >> If you want to run Apache or nginx again heavily depends on your needs. >> Apache is a full-blown HTTP server and very powerful whereas nginx is quite >> small and very fast. We recently used nginx as reverse proxy to scale to >> several BaseX instances, which worked really well. So this gives you also >> the opportunity to scale your application depending on the server load. >> >> Cheers, >> Dirk >> >> >> On Wed, Nov 7, 2012 at 9:57 PM, Colin McEnearney < >> colinmcenearney at gmail.com> wrote: >> >>> Hi, >>> >>> Can anyone point to some help with deploying a basex webapp to a linux >>> / apache envinroment? >>> >>> I don't have much experience with Apache config. Is it best to leave >>> basex running on port 8984 and proxy the port 80 requests? Or to config >>> basex to operate on port 80? >>> >>> Any info on this topic is greatly appreciated. I wonder if maybe it's >>> easier to run something else altogether, such as nginx? >>> >>> Thanks, >>> Colin >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >> >> >> -- >> Dirk Kirsten, BaseX GmbH, http://basex.org >> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle >> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >> > >
CM
Colin McEnearney8 Nov 2012 21:51 #
Never mind - it's working!
Thrilling!! This is my first deployment that is not on the LAMP stack. Sweet freedom!
On Thu, Nov 8, 2012 at 2:39 PM, Colin McEnearney
<colinmcenearney at gmail.com>wrote:
Quoted text · Colin McEnearney · 94 lines
> Hi Dirk (or anyone), > > Would you mind showing me your config, or similar, for serving a basex > webapp with nginx? > > I've got this atm, not working yet: > > index index.xq index.xqy index.xquery index.html; > server { # simple reverse-proxy > listen 80; > server_name domain.com www.domain.com; > access_log logs/domain.com.access.log main; > > # pass requests for content to basex > location / { > proxy_pass http://127.0.0.1:8984; > > } > } > > > > > On Wed, Nov 7, 2012 at 5:08 PM, Colin McEnearney < > colinmcenearney at gmail.com> wrote: > >> Thanks Dirk. >> >> This is specifically in regards to a Dreamhost VPS with many domains on >> it, several using php and wordpress which I just learned relies on >> .htaccess for its permalinks... (so no nginx (I think ) ) >> >> I have put off this day for as long as possible, but I think I have to >> roll up my sleeves and learn how to configure mod_proxy for Apache >> >> >> >> >> On Wed, Nov 7, 2012 at 4:26 PM, Dirk Kirsten <dk at basex.org> wrote: >> >>> Hi Colin, >>> >>> this heavily depends on your application. If you really just need BaseX >>> (e.g. you run some RestXQ application) there should be no reason why not to >>> use solely BaseX and run it on port 80. However, if you need something >>> more, which is quite likely, it might be wise (and I would recommend doing >>> so as it adds some flexibility) to run some HTTP server or reverse proxy. >>> >>> If you want to run Apache or nginx again heavily depends on your needs. >>> Apache is a full-blown HTTP server and very powerful whereas nginx is quite >>> small and very fast. We recently used nginx as reverse proxy to scale to >>> several BaseX instances, which worked really well. So this gives you also >>> the opportunity to scale your application depending on the server load. >>> >>> Cheers, >>> Dirk >>> >>> >>> On Wed, Nov 7, 2012 at 9:57 PM, Colin McEnearney < >>> colinmcenearney at gmail.com> wrote: >>> >>>> Hi, >>>> >>>> Can anyone point to some help with deploying a basex webapp to a linux >>>> / apache envinroment? >>>> >>>> I don't have much experience with Apache config. Is it best to leave >>>> basex running on port 8984 and proxy the port 80 requests? Or to config >>>> basex to operate on port 80? >>>> >>>> Any info on this topic is greatly appreciated. I wonder if maybe it's >>>> easier to run something else altogether, such as nginx? >>>> >>>> Thanks, >>>> Colin >>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>> >>> >>> -- >>> Dirk Kirsten, BaseX GmbH, http://basex.org >>> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >>> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >>> | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle >>> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >>> >> >> >
Written for BaseX 7.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery