>> Hello. I want to customize login page. I read this article. Everything is ok. Now my question is I use default basic authentication script which is use default login.xhtml file and my custom login script which is has own login xhtml and xml file for mapping. I put my new xhtml file under /custom/pages/ according to article. Where should I put its xml file?
If you use modified xhtml inside /custom/pages, it will override default login.xhtml.
>> My second question I stored all my custom script to files and use these files path. What is the correct permission for these files?
Try root:root and tomcat:tomcat. We suggest to save that custom scripts in ldap as it will help you a lot in clustered setup.