user www-data; error_log logs/error.log; pid nginx.pid; pcre_jit on; worker_processes auto; events { worker_connections 4096; } http { types { text/html html; text/html htm; text/css css; application/pdf pdf; } server_tokens off; client_body_temp_path /tmp; open_file_cache max=256; open_file_cache_errors on; server { listen 80; server_name smmptn.itera.ac.id; access_log off; root root; # document root default_type text/html; location / { set_unescape_uri $regno $arg_regno; set_unescape_uri $date $arg_date; set_unescape_uri $month $arg_month; set_unescape_uri $year $arg_year; # lua_code_cache off; # check modification } location = /dist.css { expires modified 1h; add_header Cache-Control "public"; } location /data { root root; } } }