News for hackers. Stuff that matters.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by mholt on Tuesday April 28, 2015 @11:00AM (#9452828)
Hi HN. This was my hobby project over the last 4 months and it kept me sane through my hardest semester. Feedback and contributions are totally welcome. I know Caddy has a long way to go, but it's already replaced nginx and Apache for my own needs. I figured it was time to make this a community-driven project for all who are interested.

(Incidentally, I really hope my little Digital Ocean droplet can handle the load. Wouldn't that be ironic? Anyway, if you have trouble, try the plain HTTP/1.1 site or the GitHub project page: https://github.com/mholt/caddy)

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by jsd1982 on Tuesday April 28, 2015 @12:06PM (#9453281)
Slightly off-topic: Try serverhub.com instead of digitalocean.com. They have much more flexible offerings and much more storage available for cheaper prices. I'm running a bunch of web sites off a single $18/mo plan VPS that gives me 120GB of SSD storage.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by mholt on Tuesday April 28, 2015 @12:55PM (#9453679)
Thanks for the link; never looked into ServerHub before, but I will take a look. Their offering is appealing... wonder how they can afford that.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by serverhub on Tuesday April 28, 2015 @01:05PM (#9453755)
If you need any help, reach out to me directly via email at [email protected] or on Skype at: JonathanBSH

Additionally, we have 24x7 chat, ask for Jonathan! :-)

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by serverhub on Tuesday April 28, 2015 @01:04PM (#9453739)
Thanks for the reference! We definitely have some good services available! :-)
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by avinassh on Tuesday April 28, 2015 @01:08PM (#9453781)
I have also found Ramnode to be cheaper than DO. Their support is also good and they have active IRC channel for quick help. Been using them from two years and no complaints so far.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by Veratyr on Wednesday April 29, 2015 @01:21PM (#9459928)
Their security has been compromised on at least one occasion due to the platform they've built their service on (SolusVM).

Around two years ago a SolusVM zero day allowed attackers to:

- Partially or fully wipe most VPS, many of which could not be recovered

- Gain access to the database, including plaintext root VPS passwords, first name, last name, email

Not saying DigitalOcean is a fortress or anything but it hasn't been compromised on anything like this kind of scale.

Sources:

- http://blogs.ixiacom.com/ixia-blog/the-speed-of-a-zero-day-s...

- https://clientarea.ramnode.com/announcements.php?id=183

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by ramnode on Wednesday April 29, 2015 @11:44PM (#9463235)
That was indeed two years ago, with no further issues since. It was not most VPSs, though there were a few host nodes wiped. Regardless, we are in the process of fully replacing SolusVM with our own system.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by ramnode on Wednesday April 29, 2015 @11:45PM (#9463236)
Thank you!
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by czk on Tuesday April 28, 2015 @12:13PM (#9453329)
Are they OpenVZ?
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by serverhub on Tuesday April 28, 2015 @01:04PM (#9453748)
Yes, all of our VPS plans are OpenVZ.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by sbuk on Wednesday April 29, 2015 @02:20AM (#9456701)
Any plans for European datacenters?
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by serverhub on Wednesday April 29, 2015 @08:28AM (#9457760)
sbuk,

We do not have any locations offshore yet, however we are looking to expand and open new datacenters in the years to come.

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by jetm9 on Wednesday April 29, 2015 @03:10AM (#9456845)
asking to learn: what diff does openVZ make over other options?
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by Veratyr on Wednesday April 29, 2015 @01:31PM (#9460025)
OpenVZ is a container based virtualization solution. Among other things it means you can't run your own kernel or make changes to the existing kernel.

The biggest problem I've encountered with it is not being able to set up certain iptables rules without a particular setting on the OpenVZ host being enabled (which often requires a support ticket).

To put it simply, OpenVZ works similarly to Docker rather than VirtualBox or VMWare and comes with similar benefits and limitations.

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by solaris999 on Tuesday April 28, 2015 @11:46AM (#9453153)
This looks amazing!

Your docs page 404s for me every other refresh and doesn't load with any CSS. I'm guessing this is a load problem?

Edit: Managed to load it with styling this time, it looks great :)

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by danappelxx on Tuesday April 28, 2015 @11:53AM (#9453193)
This is really cool. Out of curiosity, is there any support for the wsgi protocol? It would be really cool if I could use it with uWSGI.
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by mholt on Tuesday April 28, 2015 @12:07PM (#9453288)
I looked into it. There's only a couple WSGI libraries that I know of. Still not sure if either one would do: https://github.com/mattn/go-uwsgi or http://godoc.org/bitbucket.org/classroomsystems/wsgi.

Feel free to open an issue about it!

Re:Show HN: Caddy, a cross-platform HTTP/2 web server by SunSparc on Tuesday April 28, 2015 @12:32PM (#9453489)
This is a sweet little web server. Good job putting it all together!
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by Kudos on Tuesday April 28, 2015 @11:48AM (#9453162)
This is really impressive, well done!
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by hoodoof on Tuesday April 28, 2015 @04:58PM (#9455114)
Does it spawn processes?
Re:Show HN: Caddy, a cross-platform HTTP/2 web server by mholt on Tuesday April 28, 2015 @05:09PM (#9455170)
Nope, it's just multi-threaded and, by default, will utilize all available cores. You can configure it to run commands at startup and shutdown, though, in which case yes, it would spawn processes.