blob: 969a26584209e68ce8b30ecb696577353a335b58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# hn
[hn](https://hn.cleberg.net) is a simple front-end alternative for Hacker News.
hn focuses on simplicity and privacy.
## Development
To deploy, ensure you have a publicly-available web server and configure it to
fallback with all errors to the `index.php` file rather than returning a `404`
error.
For nginx, include the following snippet in your website's conf file:
```conf
location / {
# First attempt to serve request as file, then
# as directory then fall back to index.php
try_files $uri $uri/ /index.php?$args;
}
```
For Apache, you can include the following snippet in a `.htaccess` file within
the directory you're serving the PHP file from:
```conf
FallbackResource /index.php
```
|