Live data from Hacker News

Ask HN: Cheapest/easiest way to host a static site?

news.ycombinator.com

491–500 of 507 posts

Re: Ask HN: Cheapest/easiest way to host a static site?

#491
post #358

Earlier quoted context omitted.

> I do things like serve html without the .html filetype in the url; e.g. https://zck.org/emacsconf2020 is stored on the server as emacsconf2020.html How do you handle it?

In the .htaccess: RewriteEngine on RewriteCond ${REQUEST_FILENAME} !-D RewriteRule "^((?:.*/)*[^/.]+)$" "$1.html" [NC]

Any reason not to just use

  Options MultiViews
instead?

Re: Ask HN: Cheapest/easiest way to host a static site?

#492
post #358

Earlier quoted context omitted.

In the .htaccess: RewriteEngine on RewriteCond ${REQUEST_FILENAME} !-D RewriteRule "^((?:.*/)*[^/.]+)$" "$1.html" [NC]

Any reason not to just use Options MultiViews instead?

Mainly because I did not know that existed. I'll have to test it before thinking about switching it out. I wonder if there's some sort of unit test suite for .htaccess configurations -- big changes like this could definitely break something, and my config works for me now.

It does seem like it might be more magic than I prefer in programming, though.

Re: Ask HN: Cheapest/easiest way to host a static site?

#494
post #219

Hosting a personal blog on old / cheap hardware at home and accepting some downtime now and then should be a trade-of worth making for most. An interconnected web of documents served from personal computers residing under a desk or in a basement – it is a beautiful thing. We nerds often seem to fall into the trap of over-engineering things, like, spending a lot of time building personal stuff that can scale into the…

[deleted]

Re: Ask HN: Cheapest/easiest way to host a static site?

#498

Earlier quoted context omitted.

Don't a bunch of residential ISP's not allow HTTP?

Yes but just in the land of the Free.

I must contradict this. Virgin Media (a large UK ISP), as well as other service providers, see running a web server on a residential Internet connection a violation of the Terms of Service.

(Unless I misunderstood your point.)

https://old.reddit.com/r/selfhosted/comments/8cfwmi/any_uk_p...

Re: Ask HN: Cheapest/easiest way to host a static site?

#500
post #191

Earlier quoted context omitted.

I should warn that bike shedding about this distinction is absolutely not worth your time if you’re reading this and have less than like 100 blog posts written or are running a business on these sites (in which case I think you should pick Netlify). Go write something.

Now you have something to write about.

Yup, it's almost a joke at this point, that the first post on a technical blog is usually about how they build their static blog.
Post reply on HN