Compile nginx with MinGW and add nginx_dav_ext_module.

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.