SYSTEM INFORMATION | |
---|---|
OS type and version | Rocky Linux 9.5 |
Virtualmin version | 7.30 |
Apache version | 2.4 |
I have a VPS with a domain and a subdomain running right now.
In the subdomain I have HTML files and folders (it’s a static site), and I can access almost all web pages without problems, but I can’t access pages that share the same name with folders.
Real example: inside the folder “p” there are the folder “cv” and the file “cv.html”:
p/
├─cv/
└─cv.html.
The cv.html page links to documents contained in the “cv” folder, but the server does not allow me to access the address:
[SUBDOMAIN].[DOMAIN]/p/cv
Instead, it redirects me to:
[SUBDOMAIN].[DOMAIN]/p/cv/
And returns the “403 Forbiddden” error:
“Forbidden
You don’t have permission to access this resource. Server unable to read htaccess file, denying access to be safe”
What I understand is that if I want to access a file, without adding the file extension, and its name is the same as the name of a folder within the same directory, the server will try to open the folder, not the file, because when I add the file extension to the URL:
[SUBDOMAIN].[DOMAIN]/p/cv.html
The web page is displayed without problems.
My question is: how can I configure Virtualmin to, by default, open the addresses as files without file extensions? or what other options do I have (apart from renaming affected files/folders which, in my case, would not be ideal)?