Arc Forumnew | comments | leaders | submit | jsomers's commentslogin
1 point by jsomers 6009 days ago | link | parent | on: help deploying arc to a web server

Thanks for the advice. I've poked around mod_proxy but not sure where to drop those directives. I can lynx to localhost:8080 fine on the server (i.e. the site works locally on the server), so I guess I'm looking for a map from example.com/news -> localhost:8080, which at least seems like progress. Do I need to put some handler in .htaccess, or is that way off base? Ideas?

-----

3 points by kens2 6009 days ago | link

I haven't actually tried this, so my advice is probably worthless, but take a look at "Configure mod_proxy" at http://confluence.atlassian.com/display/DOC/Using+Apache+wit... and use news in place of confluence.

I don't think .htaccess will help you at all; example.com/news exists in "URL-space" not in the filesystem. So you don't need to do anything with a /news directory.

-----

1 point by jsomers 6010 days ago | link | parent | on: help deploying arc to a web server

When I run (nsv) I get the same "ready to serve port 8080," which is a good sign, though I'm almost sure that my server (via shared hosting) isn't going to route everything automatically and properly...

In other words, I expect that there's some config I have to do and I'm not sure what it is.

-----

4 points by almkglor 6010 days ago | link

Do you have apache up?

The port for HTTP should really be port 80. However, I think most of the people here who have deployed the Arc server generally put Apache (serving on port 80) between the real world and the Arc server (serving on port 8080). This is generally done because nobody trusts the Arc server to be hackproof yet, especially not the Anarki version, which has been touched by quite a few people and may not be perfectly secure (but at least has a few more abilities than the Arc2 version).

If you're willing to risk it, then try (nsv 80), which forces the Arc server to listen on 80; you might need to run as root though.

-----

1 point by jsomers 6010 days ago | link

Thanks. This is helpful, but not quite there yet.

I don't have root access, so naturally (nsv 80) gives "listen on 80 failed (Permission denied..." error.

Apache is up, but I'm not sure what I can do with it. Is there a simple redirect I need to run?

To be precise, I've loaded arc2 into a directory [mydomain]/news corresponding to news.[mydomain].com, with the news.arc specifying "news.[mydomain].com" as the site url; I launch the Arc REPL from there ("mzscheme -m -f as.scm") and do "(nsv)"... to no avail.

Thanks for the help so far, really appreciate it.

-----

2 points by almkglor 6010 days ago | link

Try accessing news.[mydomain].com:8080. If you have some sort of terminal access on your remote computer, try lynx http://news.mydomain.com:8080/

As for the Apache <-> Arc talking thing, you'll have to wait for someone else to answer that question; I honestly don't know, because I haven't deployed one yet.

-----

1 point by jsomers 6010 days ago | link

This was my first thought too, although unfortunately I get a network timeout error.

-----