Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow access to a hidden directory (.) in Apache

I need to put something in a directory on my web server that starts with ., i.e. the path would be my.domain/.something/somefile.

However, it seems that my Apache configuration blocks all access to hidden directories.

How do I change the config so that access to this one particular directory is allowed?

like image 545
Echows Avatar asked Dec 04 '15 14:12

Echows


People also ask

How do I restrict access to a folder in Apache?

Just add a . htaccess file with the code Deny from all to the folder.

Where is well known folder Apache?

The document root folder for the website hosted on Apache is usually the folder '/var/www/html/'. There, you can create the '. well-known' and 'pki-validation' folders on the hosting server and then upload the file to 'pki-validation'.

How do I make Apache more secure by hiding a folder?

conf file for this site in /etc/apache2/sites-available (and linked it to /etc/apache2/sites-enabled). Open that . conf file in your favorite editor and in the Directory section change AllowOverride None to AllowOverride All. Save and close the file.


1 Answers

The default configuration from the apache.org distribution has no problem serving files from a .something subdirectory of the document root. You'd have to search your own logs and configuration for a problem.

like image 190
covener Avatar answered Sep 20 '22 18:09

covener