By kooperg
code
Hi, I get a “restricted Area” login prompt (which i can bypass with the provided WP admin password) at my entire website. I checked the Removing the Additional Apache Password Prompt for Admin Areas GUIDE, but my apache file looks really different, see below.
Can anyone point me to what I should change/remove/# ?
Thanks a lot!
ServerRoot "/etc/apache2"
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel crit
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
<Limit PUT DELETE CONNECT OPTIONS PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
deny from all
</Limit>
</Directory>
<Directory /var/www>
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
AccessFileName .htaccess
<FilesMatch "^\.ht">
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!
I typed nano .htaccess and all it shows me is a (new) empty file…
I didn’t login as root tho (since that’s disabled per the guide)… and when I add ‘sudo’ it tells me my account is not a sudoer…
You can removed “restricted Area” log in using .htaccess file. You can locate it in root directory of website.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.