Hello, I have a problem with securing a subdomain.
When I create a subdomain on my domainname like "test" DA creates it like
http://test.mydomain.ext and
http://www.mydomain.ext/test
When I want to protect the subdomain with .htaccess/.htpasswd it only protects the 2nd line : http://www.mydomain.ext/test but test.mydomain.ext if free accessable.
Does onyone know how to solve this problem, because I don't want to share all the information in the subdomain test.mydomain.ext with the whole web.
my htaccess looks now like:
AuthGroupFile /dev/null
AuthName "Protection Info"
AuthType Basic
AuthUserFile /home/username/domains/domain.ext/.htpasswd/public_html/test/.htpasswd
require valid-user
I can't find the path to the subdomain.
Many thanks in advance.
Erwinn
When I create a subdomain on my domainname like "test" DA creates it like
http://test.mydomain.ext and
http://www.mydomain.ext/test
When I want to protect the subdomain with .htaccess/.htpasswd it only protects the 2nd line : http://www.mydomain.ext/test but test.mydomain.ext if free accessable.
Does onyone know how to solve this problem, because I don't want to share all the information in the subdomain test.mydomain.ext with the whole web.
my htaccess looks now like:
AuthGroupFile /dev/null
AuthName "Protection Info"
AuthType Basic
AuthUserFile /home/username/domains/domain.ext/.htpasswd/public_html/test/.htpasswd
require valid-user
I can't find the path to the subdomain.
Many thanks in advance.
Erwinn