Author Topic: create a directory on a hosting account (says forbidden)  (Read 73 times)

0 Members and 3 Guests are viewing this topic.

Offline
*
create a directory on a hosting account (says forbidden)
« on: October 31, 2024, 10:14:31 AM »
I have a domain that i was looking to install an SSL via ssls.com but it asked to upload a file to validation. here is the issue

if i create a folder on linuxshed.com/test/ you should see a directory here with 1 image file in it but it says forbidden.

i have to create a folder .well-known/pki-validation which i have via file manager, uploaded the txt file ssls.com has asked me to do but it says forbidden if i try and access it and so does the file inside that folder that i try and access which is a small text file.

Any ideas what am doing wrong?

i created a file with /test2 with an index.html file in it and that worked. do i need to have an index file in every folder for it not to be forbidden to access?

Thanks for everyone's help so far for all the questions i am asking.

Dave

Offline
*****
Re: create a directory on a hosting account (says forbidden)
« Reply #1 on: November 01, 2024, 04:09:20 PM »
directory listings are disabled by default, so it would require an index.html or index.php to exist in order to load from that directory.

Offline
**
Re: create a directory on a hosting account (says forbidden)
« Reply #2 on: November 02, 2024, 01:55:39 PM »
index file isn't required if you try to access the file via the direct link:
http://domain.com/folder/file.txt
even if the directory listing is disabled.

So if you try to access the file over the direct link and get the error 403 (forbidden) then make sure the access permissions allow to access the file (folder and file belong to the correct user, etc) and your HTTP/HTTPS request isn't blocked by mod_security or any other nginx/apache module used to control access (there is no some deny/allow rule).