server { listen 80; server_name $DOMAIN; root $INSTALL_DIR; index index.php; location / { try_files \$uri \$uri/ /index.php?\$args; } location ~ /\.ht { deny all; } }