I have some web project (website) that runs it's own web-server (in my case I am using Haskell's snap-server - but that is irrelevant for the purpose of this question).
How do I make it run on the system's port 80 to serve it's content to the public? In particular I am interested in:
- Where in the system do I put it?
/var/blah
? Is there a standard place for this in linux? - What user and/or group should the service run as? I know that to run on 80 you have to be root.
- What kind of permissions/ownerships does that folder (in step.1) need to have?
- How do I start my service automatically, and keep it running after i log out of my ssh connection? (For example, in windows this is done with sc.exe)
Any help is appreciated, or a point in the right direction. Thank you!
P.S.: I am using Ubuntu 12.04 64bit if that helps.