From: John Haugabook <johnhaugab...@gmail.com> This patch provides an example httpd.conf file, which allows for the virtual includes to be rendered. It also overrides the .htacess files, but for the purpose of making local edits seems appropriate. I wasn't sure about making a note on adding httpd.conf to .gitignore as that may be something that goes without saying.
I made s support repo that illustrates a variation of the httpd.conf file, accounting for a Linux Environment. Visit https://github.com/jhauga/patch-newlib-cygwin-faq/tree/reproduce-local-site/cygwin-htdocs#readme on how to see a working example. Signed-off-by: John Haugabook <johnhaugab...@gmail.com> --- winsup/doc/faq-resources.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/winsup/doc/faq-resources.xml b/winsup/doc/faq-resources.xml index 9b8439b4c..4ef6f70bd 100644 --- a/winsup/doc/faq-resources.xml +++ b/winsup/doc/faq-resources.xml @@ -68,5 +68,33 @@ which works well for this purpose, then create and configure the use software like <literal>XAMPP</literal> or <literal>AMPPS</literal>, and configure the default <filename>httpd.conf</filename> accordingly. </para> + +<para>Below is an example <filename>httpd.conf</filename>. +<screen> + # httpd.conf (in current folder) + ServerRoot "[path_for]/Apache24/bin" + Listen 8000 + ServerName localhost + DocumentRoot "[path_for]/cygwin-htdocs" + LoadModule rewrite_module "[path_for]/Apache24/modules/mod_rewrite.so" + LoadModule alias_module "[path_for]/Apache24/modules/mod_alias.so" + LoadModule mime_module "[path_for]/Apache24/modules/mod_mime.so" + LoadModule dir_module "[path_for]/Apache24/modules/mod_dir.so" + LoadModule include_module "[path_for]/Apache24/modules/mod_include.so" + LoadModule authz_core_module "[path_for]/Apache24/modules/mod_authz_core.so" + LoadModule log_config_module "[path_for]/Apache24/modules/mod_log_config.so" + <Directory "/"> + AllowOverride None + </Directory> + AddType text/html .html + AddOutputFilter INCLUDES .html + Options +Includes + DirectoryIndex index.html + TypesConfig "[path_for]/Apache24/conf/mime.types" + PidFile "[path_for]/cygwin-htdocs/httpd.pid" + ErrorLog "[path_for]/cygwin-htdocs/error.log" + CustomLog "[path_for]/cygwin-htdocs/access.log" common +</screen> +</para> </answer></qandaentry> </qandadiv> -- 2.49.0.windows.1