Arc Forumnew | comments | leaders | submitlogin
Ports news 8080
2 points by HNer 5614 days ago | 3 comments
Hi, I have been looking through the archives and found this http://arclanguage.org/item?id=8644 which talks about running the HN app on port 80. I have it all working currently on 8080 but would like to access it from example.com/forum, im using ubuntu, can you suggest the easy way to do this with htaccess or mod-proxy, im a noob so please spell it out with an actual example if poss as I been trying without success.


2 points by akkartik 5614 days ago | link

Is it your own machine? You'll need to run arc as root, otherwise you won't have permission to get at port 80.

If are running as root, simply replace (nsv) with (nsv 80).

But I think it's a bad idea. Running arc as root might make your computer easier to hack into in the future. This is why that comment you found recommends using apache, even though it's a royal pain.

-----

1 point by HNer 5614 days ago | link

it is my own machine and i understand the risks of running as root. on this server nothing too sensitive and backed up with linode so low risks.

I didnt however have any luck with the (nsv 80)

Error: "tcp-listen: listen on 80 failed (Address already in use; errno=98)"

I have Apache running on this server with other V hosts using 80.

-----

1 point by HNer 5614 days ago | link

seems like a very common issue, I found this http://arclanguage.com/item?id=3498 but surely there should be a more elegant solution and better documentation.

Also, permissions need to be set on the internal directories before news would run, not mentioned in docs.

-----