Hacker News new | past | comments | ask | show | jobs | submit login

Thanks for that.

The issue I have is that I would prefer to keep Apache around if I can (I have a few sites - some of which I host for friends). While my web server does have a few IPs attached, I'd rather not have to buy more IPs just to separate Apache from Go.

And to be perfectly honest, I do quite like Apache. (each to their own I know, but I've had little reason to complain about it).




Right, you're describing my situation exactly.

I used to run Apache solo.

Now I run Nginx, which forwards requests to Apache or to my various go apps based on the domain name. Apache and the go apps just listen on different ports internally. The server only has 1 IP address.


You are an absolute star. If I could up vote you a hundred times I would.

Thank you


I use Apache too (it's all I've ever known), and run a few Go web apps. Everyone lives quite peacefully together. With Apache, I just set up a simple reverse proxy.

Here's an example of one I use to run my own `godoc` server:

    <VirtualHost *:80>
        ServerAdmin admin@burntsushi.net
        ServerName godoc.burntsushi.net
        ProxyPreserveHost On
        ProxyPass / http://burntsushi.net:8080/
        ProxyPassReverse / http://burntsushi.net:8080/
    </VirtualHost>


Nice idea.

I might try that before dipping my toes into Nginx


Yeah, it's a nice holdover. I keep hearing great things about Nginx though. Someday I'll have time to check it out :-)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: