<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>Hello,</p>
<p>The binary program built for Linux can't run directly on Windows.And the source of nginx is called a 'tarball',whose file structure is fit for Linux.To build it,you need Linux build tool chains.</p>
<p>The best solution is Cygwin,which is a program that allow you to use POSIX programs on Windows.Or if you use Windows10(Build 14393 and higher),you can consider to use Linux Subsystem On Windows.</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> nginx <nginx-bounces@nginx.org> 代表 David Woodstuck <leeon2013@gmail.com><br>
<b>发送时间:</b> 2017年8月2日 12:35:45<br>
<b>收件人:</b> nginx@nginx.org<br>
<b>主题:</b> Building Nginx from source for Windows</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-size:12.8px">I have two questions:</div>
<div style="font-size:12.8px"><br>
</div>
<span style="font-size:12.8px">1. How do I build Nginx from source for Windows?</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">2. If I can build Nginx from source for one Window OS, can I copy Nginx into another Windows?</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">3. I have already build Nginx from for Linux because I need this module -
<a href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" id="LPlnk79436" previewremoved="true">
https://github.com/yaoweibin/ngx_http_substitutions_filter_module</a>. The build processs is the same for Linux and Windows(<a href="http://nginx.org/en/docs/configure.html" id="LPlnk941610" previewremoved="true">http://nginx.org/en/docs/configure.html</a>).</div>
<div id="LPBorder_GT_15016503188910.7400437989868212" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15016503188860.09918771332600085" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15016503188880.3039467954908055" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15016503188880.36857471530842423"></div>
<div id="LPTitle_15016503188880.8238038728637396" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15016503188890.9618205462211211" href="http://nginx.org/en/docs/configure.html" target="_blank" style="text-decoration: none;">Building nginx from Sources</a></div>
<div id="LPMetadata_15016503188890.9366185915982086" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 14px;">
nginx.org</div>
<div id="LPDescription_15016503188900.08880151774693301" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Building nginx from Sources. The build is configured using the configure command. It defines various aspects of the system, including the methods nginx is allowed to ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div id="LPBorder_GT_15016503186380.33636890511451556" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15016503186290.7413553447662493" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_15016503186310.6749602711023996" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_15016503186320.43047791627854126" style="background-color: rgb(255, 255, 255); height: 250px; position: relative; margin: auto; display: table; width: 250px;">
<a id="LPImageAnchor_15016503186330.5655247054524364" href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" target="_blank" style="display: table-cell; text-align: center;"><img id="LPThumbnailImageID_15016503186330.9762853121395105" style="display: inline-block; max-width: 250px; max-height: 250px; height: 250px; width: 250px; border-width: 0px; vertical-align: bottom;" width="250" height="250" src="https://avatars0.githubusercontent.com/u/153753?v=4&s=400"></a></div>
</td>
<td id="TextCell_15016503186340.1292472142870582" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15016503186340.8516356708601658"></div>
<div id="LPTitle_15016503186340.9814731799458662" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15016503186350.6052636566815346" href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" target="_blank" style="text-decoration: none;">GitHub - yaoweibin/ngx_http_substitutions_filter_module: a ...</a></div>
<div id="LPMetadata_15016503186360.8795220598971056" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 14px;">
github.com</div>
<div id="LPDescription_15016503186370.08562489535370177" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
ngx_http_substitutions_filter_module - a filter module which can do both regular expression and fixed string substitutions for nginx</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Thanks,</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">David</div>
</div>
</div>
</div>
</body>
</html>