Question

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

  • Posted August 21, 2014

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 
</DirectoryMatch>

Please, help?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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: