How to build Apache httpd cspnonce module for Windows?

  apache, build, mod, windows

I try to build cspnonce module for Apache httpd server for Windows. The repository is from This is the first time I try to compile an Apache module by myself.

I put the source files in the Apache 2.4.51 source file root, then download and put apr, apr-uitl in src-lib folder, as the "additional include directories" of the project implies. But Visual Studio told me that it can’t find os.h, ap_config_layout.h, apr.h, <string.h>, Windows.h, etc. Do I need to do something first with Apache source code? For example, make ap_config_layout.h based on I totally have no clue why there are so many missing include files.

Any advice will be appreciated.


Source: Windows Questions