C
chilihost
Guest
I have a domain that runs software which requires that he has no 401 ErrorDocument directive, however, it still requires the other ErrorDocument directives (404 in particular).
I have manually removed this entry out of the httpd.include file for this domain and it works fine. However, every once in a while plesk seems to overwrite this file and re-add in that directive. I know that you are never supposed to edit this file for that very reason, and supposed to keep edits to the vhost.conf file. However, due to the requirement I can't see any other way to remove the 401 directive but keep the other directives in place.
Does anyone know of a way to permanently keep that 401 directive from coming back, possibly overwriting some master template file or possibly setting this file to read only or maybe even dropping the ErrorDocument option and entering the required directives into the vhost.conf file instead?
thanks for your help!
Luke
I have manually removed this entry out of the httpd.include file for this domain and it works fine. However, every once in a while plesk seems to overwrite this file and re-add in that directive. I know that you are never supposed to edit this file for that very reason, and supposed to keep edits to the vhost.conf file. However, due to the requirement I can't see any other way to remove the 401 directive but keep the other directives in place.
Does anyone know of a way to permanently keep that 401 directive from coming back, possibly overwriting some master template file or possibly setting this file to read only or maybe even dropping the ErrorDocument option and entering the required directives into the vhost.conf file instead?
thanks for your help!
Luke