Arc Forumnew | comments | leaders | submitlogin
2 points by thaddeus 4164 days ago | link | parent

1. On unix systems you can use 'screen' which will keep your process running after closing the terminal. See http://arclanguage.org/item?id=16009

3a. Personally I would ditch apache and move to ngnix: http://wiki.nginx.org/Main which solved a variety of problems for me. http://arclanguage.org/item?id=11911 & http://blog.martinfjordvald.com/2010/07/nginx-primer/ may help.However given you're already there it's probably less work to stay with apache.

3b. You don't forward racket to port 80, rather you're supposed to forward incoming requests that come to apache/nginx (which comes in via port 80) over to port 8080 or whatever port you choose to run the arc server on. This is called proxy or gateway passing.

Assuming you stick with apache, I'm still not familiar with your proxy passing implementation. It looks more like a hack using a load balancing mechanism for proxy passing and unless you're load balancing I wouldn't use it. When I used apache in the past I would load the mod_proxy module then do a normal 'ProxyPass'. You should configure according to the docs: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

[EDIT: looks like some rudimentary google searching would indicate you have not loaded all the necessary modules for apache -> http://www.genlinux.org/2009/07/balancermember-cant-find-byr... ]



1 point by vuong 4161 days ago | link

Finally it works. I have decided to switch to nginx and with only few tweaks, I can now run on 80 port, the default port of nginx.

Here is the simple code to do that on etc/nginx/nginx.conf server { listen 80; server_name bloggervietnam.com www.bloggervietnam.com;

    location / {
    proxy_pass http://127.0.0.1:8080;

    }
Remember to put this code inside http tag otherwise it will cause error. You can check nginx configuration by typing : nginx -t and then restart nginx. It works!

-----

1 point by vuong 4163 days ago | link

Thanks for your help thaddeus!

1. I just install screen and fortunately it works well. I just hit F6 button to detach my terminal session. That is why I removed fluxbox GUI for saving RAM and resource.

2. I follow the help above and now I can chance the color of the forum.

3. I have not solved the matter yet since apache did not work despite that I already installed necessary modules as you mentioned.

I may switch to nginx for a try. Thanks for your care again :-)

-----