0

In page it says in order to solve a problem in Apache 2.4, we have to create a configuration file inside the conf-available directory. For example servername.conf.

sudo vi /etc/apache2/conf-available/servername.conf

And inside this we just need to add one line

ServerName localhost

I can do that but how do I save it ?

Zanna
  • 70,465

1 Answers1

1

Apparently no-one wants to answer this question, maybe trying to avoid getting into an editor war...

You might want to check out How-To-Geek's Beginner's guide to Vi

As it says here, you first have to exit insert mode by pressing esc and then type :wq

w for write and q for quit. Obvious, surely? ;)

Zanna
  • 70,465