[opensuse] How to make apache less sensitive to config errors?
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>? -- Per Jessen, Zürich (14.0°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that. -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 13/09/2014 16:54, Cristian Rodríguez a écrit :
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that.
comment out the virtualhost in config file? jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 13/09/2014 16:54, Cristian Rodríguez a écrit :
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that.
comment out the virtualhost in config file?
Well, if I have the opportunity to comment it out, I might as well fix the config instead :-) -- Per Jessen, Zürich (15.3°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that.
Do not do /what/? I was thinking of some sort of opportunistic <virtualhost> - if it works, use it, otherwise ignore it. Just thinking out loud. -- Per Jessen, Zürich (15.3°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 13/09/14 a las #4, Per Jessen escribió:
Cristian Rodríguez wrote:
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that.
Do not do /what/?
attempt to fed apache possibly invalid configuration files.
I was thinking of some sort of opportunistic <virtualhost> - if it works, use it, otherwise ignore it. Just thinking out loud.
What do you mean by "it works" ? do you mean if it is syntactically correct ? note that configuration files can be both syntactically valid and completely wrong. -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 13/09/14 a las #4, Per Jessen escribió:
Cristian Rodríguez wrote:
El 13/09/14 a las #4, Per Jessen escribió:
Does anyone know of a way of making apache simply ignore e.g. a <VirtualHost> config which has a config error? Such that apache would just start but without that particular <VirtualHost>?
That would leave the server configuration in a "undefined" or "unspecified" state. therefore do not do that.
Do not do /what/?
attempt to fed apache possibly invalid configuration files.
Hehe, I would want to try to avoid it, but while the config itself might be correct, external circumstances could invalidate it - AssignUserID perjessen group78 If the userid 'perjessen' is deleted, this config won't work on the next startup.
I was thinking of some sort of opportunistic <virtualhost> - if it works, use it, otherwise ignore it. Just thinking out loud.
What do you mean by "it works" ? do you mean if it is syntactically correct ? note that configuration files can be both syntactically valid and completely wrong.
I meant "works" = "accepted by apache". -- Per Jessen, Zürich (13.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 14/09/2014 09:09, Per Jessen a écrit :
I meant "works" = "accepted by apache".
what says apachectl --configtest ? by the way, if configs are stored in .config files, a launch script could move the file to .config_fail if apache do not start jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 14/09/2014 09:09, Per Jessen a écrit :
I meant "works" = "accepted by apache".
what says apachectl --configtest ?
I presume it will fail.
by the way, if configs are stored in .config files, a launch script could move the file to .config_fail if apache do not start
Hmm, yes, that might be interesting to try out. -- Per Jessen, Zürich (17.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Cristian Rodríguez
-
jdd
-
Per Jessen