B
B
boozzd2014-09-25 20:12:31
Network administration
boozzd, 2014-09-25 20:12:31

How to hide root directory in cpanel?

I use hosting with cpanel. There is a parked domain and a number of additional domains. When I navigate through a parked domain, I get the contents of the public_html directory. So far, I solved the problem with the .htaccess file with the contents of Options All -Indexes. Is there a more reasonable (correct) solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Burca, 2014-10-02
@boozzd

Configure additional domains correctly so that their root directories are in the right place:
Main:
/user/public_html/
Additional:
/user/domains/domain1/public_html/
/user/domains/domain2/public_html/
/user/domains/domainX/public_html/
Then they will not intersect and there will be no need to build a Chinese wall.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question