You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2024/09/10 04:50:13 UTC
[Bug 69313] New: httpd doesn't start with config file from network share
https://bz.apache.org/bugzilla/show_bug.cgi?id=69313
Bug ID: 69313
Summary: httpd doesn't start with config file from network
share
Product: Apache httpd-2
Version: 2.4.62
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: yakovlev@itsheff.kz
Target Milestone: ---
Problem: httpd.exe (2.4.62 64bit) doesn't start if config located on network
smb share. (ex. \\server\folder\httpd.conf)
How to re-play: Get zip archive from the site. Use standard settings and add
below a string with include
Code:
Include "//DESKTOP-C70CLDM/nomad/conf/test.conf"
Start httpd with command from local user.
Code:
PS C:\Apache24\bin> .\httpd.exe -e trace8
Code:
[Tue Aug 20 15:21:40.989362 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module actions_module from C:/Apache24/modules/mod_actions.so
[Tue Aug 20 15:21:40.990361 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module alias_module from C:/Apache24/modules/mod_alias.so
[Tue Aug 20 15:21:40.992360 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module allowmethods_module from
C:/Apache24/modules/mod_allowmethods.so
[Tue Aug 20 15:21:40.994357 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module asis_module from C:/Apache24/modules/mod_asis.so
[Tue Aug 20 15:21:40.995369 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module auth_basic_module from
C:/Apache24/modules/mod_auth_basic.so
[Tue Aug 20 15:21:40.996363 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authn_core_module from
C:/Apache24/modules/mod_authn_core.so
[Tue Aug 20 15:21:40.996363 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authn_file_module from
C:/Apache24/modules/mod_authn_file.so
[Tue Aug 20 15:21:40.998365 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authz_core_module from
C:/Apache24/modules/mod_authz_core.so
[Tue Aug 20 15:21:40.999360 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authz_groupfile_module from
C:/Apache24/modules/mod_authz_groupfile.so
[Tue Aug 20 15:21:41.000368 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authz_host_module from
C:/Apache24/modules/mod_authz_host.so
[Tue Aug 20 15:21:41.001372 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module authz_user_module from
C:/Apache24/modules/mod_authz_user.so
[Tue Aug 20 15:21:41.002361 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module autoindex_module from
C:/Apache24/modules/mod_autoindex.so
[Tue Aug 20 15:21:41.003371 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module cgi_module from C:/Apache24/modules/mod_cgi.so
[Tue Aug 20 15:21:41.004365 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module dir_module from C:/Apache24/modules/mod_dir.so
[Tue Aug 20 15:21:41.005361 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module env_module from C:/Apache24/modules/mod_env.so
[Tue Aug 20 15:21:41.006366 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module include_module from C:/Apache24/modules/mod_include.so
[Tue Aug 20 15:21:41.007368 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module isapi_module from C:/Apache24/modules/mod_isapi.so
[Tue Aug 20 15:21:41.008365 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module log_config_module from
C:/Apache24/modules/mod_log_config.so
[Tue Aug 20 15:21:41.009367 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module mime_module from C:/Apache24/modules/mod_mime.so
[Tue Aug 20 15:21:41.011399 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module negotiation_module from
C:/Apache24/modules/mod_negotiation.so
[Tue Aug 20 15:21:41.012387 2024] [so:debug] [pid 11532:tid 424] mod_so.c(266):
AH01575: loaded module setenvif_module from C:/Apache24/modules/mod_setenvif.so
[Tue Aug 20 15:21:41.015387 2024] [core:error] [pid 11532:tid 424]
(13)Permission denied: AH10504: ap_filepath_merge: UNC path
//DESKTOP-C70CLDM/nomad/conf/test.conf not allowed by UNCList
httpd.exe: Syntax error on line 538 of C:/Apache24/conf/httpd.conf: Invalid
Include path //DESKTOP-C70CLDM/nomad/conf/test.conf
Add UNCList directive to config before use this include
Code:
UNCList DESKTOP-C70CLDM
Code:
[Tue Aug 20 15:21:41.015387 2024] [core:error] [pid 11532:tid 424]
(13)Permission denied: AH10504: ap_filepath_merge: UNC path
//DESKTOP-C70CLDM/nomad/conf/test.conf not allowed by UNCList
httpd.exe: Syntax error on line 538 of C:/Apache24/conf/httpd.conf: Invalid
Include path //DESKTOP-C70CLDM/nomad/conf/test.conf
Add UNCList with -C directive
Code:
.\httpd.exe -e trace8 -C "UNCList DESKTOP-C70CLDM"
Code:
[Tue Aug 20 15:22:01.171192 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module actions_module from C:/Apache24/modules/mod_actions.so
[Tue Aug 20 15:22:01.172195 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module alias_module from C:/Apache24/modules/mod_alias.so
[Tue Aug 20 15:22:01.173203 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module allowmethods_module from
C:/Apache24/modules/mod_allowmethods.so
[Tue Aug 20 15:22:01.174206 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module asis_module from C:/Apache24/modules/mod_asis.so
[Tue Aug 20 15:22:01.175196 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module auth_basic_module from
C:/Apache24/modules/mod_auth_basic.so
[Tue Aug 20 15:22:01.175196 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authn_core_module from
C:/Apache24/modules/mod_authn_core.so
[Tue Aug 20 15:22:01.176195 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authn_file_module from
C:/Apache24/modules/mod_authn_file.so
[Tue Aug 20 15:22:01.177198 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authz_core_module from
C:/Apache24/modules/mod_authz_core.so
[Tue Aug 20 15:22:01.177198 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authz_groupfile_module from
C:/Apache24/modules/mod_authz_groupfile.so
[Tue Aug 20 15:22:01.178197 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authz_host_module from
C:/Apache24/modules/mod_authz_host.so
[Tue Aug 20 15:22:01.179194 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module authz_user_module from
C:/Apache24/modules/mod_authz_user.so
[Tue Aug 20 15:22:01.180193 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module autoindex_module from
C:/Apache24/modules/mod_autoindex.so
[Tue Aug 20 15:22:01.180193 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module cgi_module from C:/Apache24/modules/mod_cgi.so
[Tue Aug 20 15:22:01.181203 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module dir_module from C:/Apache24/modules/mod_dir.so
[Tue Aug 20 15:22:01.182192 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module env_module from C:/Apache24/modules/mod_env.so
[Tue Aug 20 15:22:01.182192 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module include_module from C:/Apache24/modules/mod_include.so
[Tue Aug 20 15:22:01.184201 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module isapi_module from C:/Apache24/modules/mod_isapi.so
[Tue Aug 20 15:22:01.186194 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module log_config_module from
C:/Apache24/modules/mod_log_config.so
[Tue Aug 20 15:22:01.186194 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module mime_module from C:/Apache24/modules/mod_mime.so
[Tue Aug 20 15:22:01.187195 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module negotiation_module from
C:/Apache24/modules/mod_negotiation.so
[Tue Aug 20 15:22:01.188195 2024] [so:debug] [pid 4136:tid 476] mod_so.c(266):
AH01575: loaded module setenvif_module from C:/Apache24/modules/mod_setenvif.so
[Tue Aug 20 15:22:01.188195 2024] [core:error] [pid 4136:tid 476]
(13)Permission denied: AH10504: ap_filepath_merge: UNC path
//DESKTOP-C70CLDM/nomad/conf/test.conf not allowed by UNCList
httpd.exe: Syntax error on line 538 of C:/Apache24/conf/httpd.conf: Invalid
Include path //DESKTOP-C70CLDM/nomad/conf/test.conf
Same errors on Windows Server 2019 and Windows Pro 10 systems
In the httpd 2.4.55 everything starts correct.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 69313] httpd doesn't start with config file from network share
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69313
Christophe JAILLET <ch...@wanadoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
Backported in r1920979 in 2.4.x
This is part of 2.4.63
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 69313] httpd doesn't start with config file from network share
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69313
--- Comment #2 from Eric Covener <co...@gmail.com> ---
Thanks everyone for getting the build and feedback so fast.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 69313] httpd doesn't start with config file from network share
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69313
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FixedInTrunk
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 69313] httpd doesn't start with config file from network share
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69313
Steffen <in...@apachelounge.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Steffen <in...@apachelounge.com> ---
@Steffen can you share a build with the below patch? I am not sure why -C
didn't work so my confidence is not too high.
Index: server/core.c
===================================================================
--- server/core.c (revision 1920530)
+++ server/core.c (working copy)
@@ -4801,7 +4801,7 @@ AP_INIT_TAKE1("FlushMaxPipelined", set_flush_max_p
"Maximum number of pipelined responses (pending) above which they are "
"flushed to the network"),
#ifdef WIN32
-AP_INIT_TAKE_ARGV("UNCList", set_unc_list, NULL, RSRC_CONF,
+AP_INIT_TAKE_ARGV("UNCList", set_unc_list, NULL, RSRC_CONF|EXEC_ON_READ,
"Controls what UNC hosts may be looked up"),
#endif
Applied this fix from Eric, see
https://www.apachelounge.com/viewtopic.php?p=43024#43024
Reporter zippe :
I'v done test. It works in both cases:
1. When start httpd with local config (ex. c:\apache24\conf\httpd.conf) which
include smb shares inside.
2. httpd.exe with -C directive
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org