-1

I edited a fresh apache config file in CentOS 5 using gedit. When I looked at the directory I saw now two files:

httpd.conf 

and

httpd.conf~

What does the ~ signify?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
blarg
  • 1,565
  • 7
  • 21
  • 33
  • You should be very careful if you ever publish a website to exclude those file at all cost as one of the classical way to attack a website it to search those file that will be simply diplayed by your webserver as text files, and so reveal your server code (which is bad because no code are 100% reliable) – Kiwy Apr 24 '14 at 16:19

1 Answers1

2

httpd.conf~ is a file created by gedit (among other programs) - gedit has created it as a backup of the original file, before your changes are saved to it. You can disable this functionality, see this post.

Josh Jolly
  • 1,532
  • 11
  • 13