: This article mainly introduces how to add nginx compiled by MinGW to the nginx_dav_ext_module module. if you are interested in PHP tutorials, refer to it. When nginx is compiled with VC, the nginx_dav_ext_module module is added, and various errors may occur. you have to use MinGW instead.
1. compile expat first, and put all the compiled lib, include, and bin into MinGW.
2. Add # include sys/stat. h to ngx_http_dav_ext_module.c. Otherwise, an error will occur.
3. make does not recognize _ off_t. it is clearly defined in sys/types. h and does not know where the problem occurs. add typedef long _ off_t to ngx_http_dav_ext_module.c;
4. when linking, unresolved reference to 'gmtime _ R' cannot be found. Google defined a gmtime_r function and renamed it gmtime_s in ngx_http_dav_ext_module.c, change both parts of the file to gmtime_s.