httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hajo Locke <Hajo.Lo...@gmx.de>
Subject [users@httpd] apache 2.4 includes vi .swp files
Date Tue, 09 May 2017 08:19:06 GMT
Hello,

found an interesting difference between include behaviour of apache 2.2 
and 2.4

Have an include in apache2.conf:

Include /etc/apache2/conf.d/

When editing a conf file in this folder by vi, vi creates a new swp file.
lets say i edit a file logging.conf, so vi creates a file .logging.conf.swp

When running "apachectl configtest" at this particular time, apache 2.4 
tries to include the .logging.conf.swp which fails, because 
.logging.conf.swp is binary and invalid.
This prevents apache 2.4 from sucessfully start and leads to downtime.

Apache 2.2 tries not to include this .swp file and restarts 
successfully. Include is the same as above. (Include /etc/apache2/conf.d/)

A quick fix could be to include only *.conf files:

Include /etc/apache2/conf.d/*.conf

But i wonder if apache should basically tries to include a file 
"beginning with dot"/"ending with swp" which generelly indicates a 
temporary/hidden file.
In my opinion include behaviour of apache 2.2 was more practice-oriented.

Thanks,
Hajo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message