Helpful Information
Category: Apache configuration
Silly linux and apache question regarding the httpd.conf file

Okay a open up the httpd.conf file from the command line. It opens up in the shell window. My question is, how do I save and exit the thing? Like is it a certain keyboard combination?

Assuming you are in the right directory:

vi ./httpd.conf

Hit "I"

make your changes

Hit "Esc"

Type ":wq"

Hit enter

vi ./httpd.conf If you are first time user to vi, I suggest that you make a copy of the file first and know that ':q!' instead of ':wq' quits without saving!

It's not the most friendly of editors!

privacy (GDPR)