Problems with .htaccess in subdir

niwre

New member
Joined
Mar 20, 2008
Messages
1
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
 
Confirmed from here. It seems that .htaccess files are being ignored when using subdomains.

For instance, when the subdomain "test" is created, the directory /public_html/test is automatically built. This is normal. However, browsing to the /public_html/test folder and protecting it from DA's file manager has this effect:

http://test.domain.com/ : NOT password protected (.htaccess ignored)
http://domain.com/test : YES password protected (.htaccess followed)

Anyone have any ideas?
 
Back
Top