Report this

What is the reason for this report?

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

Posted on 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?



This textbox defaults to using Markdown to format your 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:

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.