Skip to content
Mark Nottingham edited this page Dec 4, 2018 · 6 revisions

nginx is tested as packaged on Arch Linux.

Diff from vanilla nginx.conf:

34a35,37
>     proxy_cache_path  /srv/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
>     proxy_temp_path /srv/cache/tmp;
> 
36,37c39
<         listen       80;
<         server_name  localhost;
---
>         listen       81;
44,45c46,49
<             root   /usr/share/nginx/html;
<             index  index.html index.htm;
---
>             proxy_pass http://localhost:8080;
>             proxy_cache my-cache;
>             proxy_cache_valid  200 302  60m;
>             proxy_cache_valid  404      1m;
Clone this wiki locally