2

At some point I pw protected /var/www/ for security purposes (my actual hosted websites are located in a different path), now I would like to host something publicly in /var/www/ but do not know how to remove the pw protection. There is no .htaccess file present in the directory or the parent.

What other ways could the directory be protected? Some sort of apache config file?

1 Answers1

1

You should make some changes in your apache configuration file.

Open Terminal

 sudo vim /etc/apache2/sites-available/default 
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

Make changes in AllowOverride None As.

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

Now your apache will not recognize .htaccess files in your system.