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?
Just add a . htaccess file with the code Deny from all to the folder.
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'.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With