-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache Directives without argument fail to parse #3
Comments
An example vhost i'm trying to parse (generated by plesk). The SSLRequireSSL line is breaking the parsing at the moment.
|
I have fixed this bug, but found another one when I tested it on your example vhost. |
Apache Directives without argument are very rare. Changing the regex would require further changes down the road, such the Let me know if everything is OK now. |
This works for me. It parses fine like this. But wouldn't it be safer to change to the regex to * instead of + and then fill the Offcourse there aren't many of these directives in the core apache. But apache is modular, so it can be extended with any number of (3rd party) modules, that could add config directives. |
I have a few vhosts that use the SSLRequireSSL directive (https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslrequiressl).
This directive is used as is. There are no parameters, no on/off. It's just a line inside a vhosts that states: SSLRequireSSL. Nothing else.
When you have a config file that has this it fails to parse. You get "Apache config format error!".
This is caused by the regex in ConfigType/Apache.php which expects a whitespace and then some more things which isn't there.
The text was updated successfully, but these errors were encountered: