If you do want to use port 80, it's generally safer to use a reverse proxy like nginx to listen on port 80 and forward to port 3000 - that way your code doesn't need root privileges and is less of a security headache.
On 25 February 2014 14:59, Josh Kamau <[email protected]> wrote: > you can also change this line on your project.clj > > :ring {:handler myproject.handler/app :port 8080} > > Josh > > > > On Tue, Feb 25, 2014 at 5:23 PM, Jason Stewart <[email protected]> > wrote: >> >> The lein-ring plugin accepts a port number as an argument: >> >> lein ring server 8080 >> >> Note, that in order to bind to port 80, you will need elevated (root) >> privileges. >> >> >> On Tue, Feb 25, 2014 at 9:21 AM, action <[email protected]> wrote: >>> >>> I do like this: >>> #lein new compojure-app guestbook >>> #cd guestbook >>> #lein ring server >>> >>> The server runs on port 3000 by default. >>> But how to override the default port? >>> Such as runs on port 80? >>> >>> thinks >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to [email protected] >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "Clojure" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to [email protected] >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- Robert K. Day [email protected] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
