server { listen 80; server_name kaola7.i.hrbbwx.com; root /data1/htdocs/kaola7.i.hrbbwx.com/public; access_log /data2/logs/nginx/kaola7.i.hrbbwx.com.access.log main; error_log /data2/logs/nginx/kaola7.i.hrbbwx.com.error.log; location / { fastcgi_connect_timeout 10s; fastcgi_send_timeout 10s; fastcgi_read_timeout 30s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 128k; fastcgi_intercept_errors on; fastcgi_pass web; fastcgi_index index; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $document_root$fastcgi_script_name; fastcgi_param x-request-id $txid; include fastcgi_params; rewrite ^(.*)$ /index.php$1 break; } location /static { expires 30d; } location /admin { fastcgi_connect_timeout 10s; fastcgi_send_timeout 10s; fastcgi_read_timeout 30s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 128k; fastcgi_intercept_errors on; fastcgi_pass web; fastcgi_index index; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $document_root$fastcgi_script_name; fastcgi_param x-request-id $txid; include fastcgi_params; rewrite ^(.*)$ /admin.php$1 break; } }