server { listen 80; root /home/wei/test; index index.html index.htm index.php; server_name test.net; error_page 404 /index/error; if (!-e $request_filename){ ...