I keep getting an error when I try to save my apache2.conf file? AM I doing something wrong here?

August 21, 2014 580 views

error writing etc apache2 apache2 conf no such file or directory

I removed this:

<DirectoryMatch ^.*/wp-admin/> 
AuthType Basic 
AuthName "Restricted Area" 
AuthUserFile /etc/apache2/.htpasswd 
Require valid-user 

Please, help?

1 Answer

What is the exact command you used to edit the file? It sounds like there may have been a typo in the command. It should be:

sudo nano /etc/apache2/apache2.conf

Check out this article for all the info on configuring the WordPress one-click app:

Have another answer? Share your knowledge.