I have recently installed and begun using Directadmin (so the latest version as of today is installed). I previously have used cPanel, and I find that most of the features are equivalent. I have several domains that have been set up on a VPS. There is a feature in cPanel (and Plesk) that is not natively a part of DA, but was added about two years ago, according to discussion at https://forum.directadmin.com/threads/domains-and-subdomains-pointing-to-specific-folder.1956/
This feature allows you to set a custom Document Root location, which can be within the public_html folder that was created by DA when making the domain. It can also be elsewhere. On one website I have, I have used the admin-->HTTPD configurations-->customize, and used the following customization code in the main section: |?DOCROOT=/custom/document/root|, replacing the address with the full path, from home, to the folder.
Initially, the subfolder had a capital letter in it, and I was getting a Page not Found error after adding this. Then, I found a DA forum post ( https://forum.directadmin.com/threads/custom-docroot-error-with-capital.62570/) that says that I cannot use capitalized folder letters in the docroot path. When I changed the folder name, and the corresponding defined path, to not have capital letters, the website serves the right page.
However, for another domain on this same VPS, I have a large number of folders on the server, almost all of which have capital letters in the folder name. Many of the folders contain php files which call other folders, which are also capitalized. This has not caused any issues in the past. So, when I try to use the customization above, it comes back with a page not found, which is apparently the capitalization error.
The path to the index file on this particular domain is within two subfolders, both of which have a capital letter in their folder names, which, as I said, cannot be changed. I have moved this very same server from another hosting provider, where it was using cPanel. This issue does not exist in cPanel, as one can have as many capital letters in the folder names that you want.
Is there some way that this can be worked around? Perhaps there is an Apache setting that has to be added (I think it was called differentiation on other servers) to allow the use of capital letters in the path to the index file? Thank you in advance for you help.
This feature allows you to set a custom Document Root location, which can be within the public_html folder that was created by DA when making the domain. It can also be elsewhere. On one website I have, I have used the admin-->HTTPD configurations-->customize, and used the following customization code in the main section: |?DOCROOT=/custom/document/root|, replacing the address with the full path, from home, to the folder.
Initially, the subfolder had a capital letter in it, and I was getting a Page not Found error after adding this. Then, I found a DA forum post ( https://forum.directadmin.com/threads/custom-docroot-error-with-capital.62570/) that says that I cannot use capitalized folder letters in the docroot path. When I changed the folder name, and the corresponding defined path, to not have capital letters, the website serves the right page.
However, for another domain on this same VPS, I have a large number of folders on the server, almost all of which have capital letters in the folder name. Many of the folders contain php files which call other folders, which are also capitalized. This has not caused any issues in the past. So, when I try to use the customization above, it comes back with a page not found, which is apparently the capitalization error.
The path to the index file on this particular domain is within two subfolders, both of which have a capital letter in their folder names, which, as I said, cannot be changed. I have moved this very same server from another hosting provider, where it was using cPanel. This issue does not exist in cPanel, as one can have as many capital letters in the folder names that you want.
Is there some way that this can be worked around? Perhaps there is an Apache setting that has to be added (I think it was called differentiation on other servers) to allow the use of capital letters in the path to the index file? Thank you in advance for you help.