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 2017/04/12 09:42:01 UTC
[Bug 60974] New: Syntax checks returns OK on unsyntactical
configuration file
https://bz.apache.org/bugzilla/show_bug.cgi?id=60974
Bug ID: 60974
Summary: Syntax checks returns OK on unsyntactical
configuration file
Product: Apache httpd-2
Version: 2.4.25
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: Runtime Config
Assignee: bugs@httpd.apache.org
Reporter: rob.dewit@coosto.com
Target Milestone: ---
Created attachment 34907
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34907&action=edit
Test script setting up test environment and showing bug.
If a virtual host contains more than one ServerName, only the first one is
used. Syntax checks returns 'OK', although thies yields to unexpected results
as the httpd will choose the last virtual host for that IP:port.
I've attached a test script showing the problem. It sets up two virtual hosts
with the first one containing both a ServerName directive for alice.example.com
and a ServerName directive for bob.example.com. A second virtual host contains
just one ServerName directive for carol.example.com.
My output is:
Setup test environment
Server version
Server version: Apache/2.4.25 (Unix)
Check syntax
Syntax OK
Start test httpd
Run test
Test alice...OK
Test bob...FAILED (alice)
Test carol...OK
Stopping test httpd
I would expect that either the first virtual host also respond to
bob.example.com or that the syntax checks fails.
--
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 60974] Syntax checks returns OK on unsyntactical configuration
file
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60974
Rob de Wit <ro...@coosto.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rob.dewit@coosto.com
--
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