libraryDependencies ++= Seq("org.mortbay.jetty" % "jetty" % "6.1.22" % "container",...)port in container.Configuration := 80
Regards,
Diego
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com
with standalone jetty extracted you set up the port here:
jetty-inst-dir/etc/jetty.xml
<Set name="port"><Property name="jetty.port" default="80"/></Set>
one important thing, is to pass proper startup parameters when
you start jetty, for example on linux this works fine for me
/usr/lib/jvm/java-6-sun/bin/java -Djetty.home=/home/olek/dev/jetty
-Djava.io.tmpdir=/tmp -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled
-Xms256m -Xmx256m -Xmn64m -Xss2m -jar /home/olo/dev/jetty/start.jar &;
sleep 40; disown %1;
although you may give higher values (these values are adjusted to my
server, which has not that much of it)
then you deploy war into webapps directory
also you need to create (from default sample) file for each webapp in
contexts dir, for example contexts/my_app.xml
still best set up in my opinion is to use iptables to set up firewall
on all unused ports, and use nginx as reverse proxy, and only
through nginx resolve webapps to jetty, leaving jetty on 8080
(opened only locally) and nginx on 80. however nginx configuration
is another story.
adjust /home/olek/dev/jetty so that it points to your jetty dir
I have a small virtual machine with 768MB - Debian running on
Xen full root controll. great to try out things or to host site
so I can recommend using http://bettervps.net ,but linux
experience is needed to handle that (I took the route of
learning by doing :)
On 25/04/12 05:40, Diego Medina wrote:
and some relevant code here
https://github.com/siasia/xsbt-web-plugin/wiki/Settings
So I guess you should be able to adapt it to make
sbt jetty plugin use port number 80
org.eclipse.jetty.server.Request.getServerName(Request.java:1014)org.eclipse.jetty.server.Request.getServerPort(Request.java:1094)net.liftweb.http.provider.servlet.HTTPRequestServlet.serverPort(HTTPRequestServlet.scala:92)net.liftweb.http.Req$$anonfun$hostAndPath$1.apply(Req.scala:987)net.liftweb.http.Req$$anonfun$hostAndPath$1.apply(Req.scala:987)net.liftweb.common.Full.map(Box.scala:491)net.liftweb.http.Req.hostAndPath(Req.scala:987)net.liftweb.http.LiftSession$$anonfun$cometForHost$1.apply(LiftSession.scala:600)net.liftweb.http.LiftSession$$anonfun$cometForHost$1.apply(LiftSession.scala:599)scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:213)
--