if you type the IP address of my droplet in the address bar, will be seen a list of all folders and sites: http://hsto.org/files/8d8/d9e/e91/8d8d9ee9142c469eaf3a3dd1bd4cbe74.png
How do I remove the display of all the folders and files?
I tried to put a .htaccess file in the root folder. In the .htaccess file, wrote the following:
Order deny,allow
Deny from all
OR
Options All -Indexes
this has no effect (.htaccess file is not displayed in the file list).
Google does not help (googled on requests like “apache close server root directory”)
Ubuntu 12.04, Apache, multiple domains on a single droplet.
How can i fix it?
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!
This question was answered by @kamaln7:
It looks like Apache isn’t running. According to the documentation for AllowOverride, it can only be used in a
<Directory />block. If you only need to apply that directive to/var/www, I would just add it toapache2.confinstead of an htaccess file:Replace
AllowOverride All <Directory /var/www/plugindetector.com/public_html/> AllowOverride None </Directory>with
<Directory /var/www> Order Allow,Deny Deny from All </Directory>and then start Apache:
sudo service apache2 start
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.