# nginx.conf pid /var/run/nginx.pid; worker_processes auto; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; server { listen 7860; port_in_redirect off; server_name localhost; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ =404; } location = /taxonomy/search { rewrite ^ /taxonomy/search.html break; } location = /taxonomy/browse { rewrite ^ /taxonomy/browse.html break; } location ~ ^/taxonomy/taxon/[^/]+$ { try_files /taxonomy/taxon.html =404; } } }