Bug 46071

Summary: Allowing space in between comma and last option in the Order directive
Product: Apache httpd-2 Reporter: Gia Kien Tran <6174604>
Component: AllAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: the Order directive inside httpd.conf file
Syntax error when trying to start the httpd service

Description Gia Kien Tran 2008-10-22 23:01:36 UTC
Created attachment 22768 [details]
the Order directive inside httpd.conf file

The directive Order deny, allow with a space in between comma and allow will cause a syntax error to occur when attempting to start the httpd service. Normally people will type a space right after a comma so in this situation, IMO it will happens a lot of time when people forgot to eliminate that comma.

It would be good if using a space within the argument doesn’t cause any syntax error.
Comment 1 Gia Kien Tran 2008-10-22 23:17:30 UTC
Created attachment 22769 [details]
Syntax error when trying to start the httpd service
Comment 2 Christophe JAILLET 2018-05-31 20:15:04 UTC
Order deny,allow and co are 2.2.x specific directives.
Even if still supported in 2.4.x (see mod_access_compat), it is not advised to do so.

2.2.x is EOL, so the syntax will not be tweaked anymore to accept some spaces into it. 'deny,allow' and co should be taken as a whole, not as 2 distinct options of the Order directive.