Welcome, Guest. Please login or register.
January 03, 2010, 10:29:56 AM

Login with username, password and session length

347076 Posts
38375 Topics
87226 Members

Latest Member: commodo1

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Archive Boards
| |-+  ZTL
| | |-+  .htaccess doesn't work
« previous next »
Pages: [1] Go Down Print
Author Topic: .htaccess doesn't work  (Read 9510 times)
erwindr
Comodo Member
**
Offline Offline

Posts: 25


« on: June 14, 2007, 03:20:11 PM »

ZTL 1.0
This feels really stupid:

I'm trying to protect some directories with .htaccess but I still can access these directories without any problem.

I tried via the ZTL web panel and it generates the files in the appropriate directories. I also generated them via online tools but still no go.

I noticed that the ZTL web panel sets group and owner of the files to root:root and not to the owner of the domain, but changing that doesn't make a difference.

Is this an Apache (httpd.conf) setting somewhere that overrides the .htaccess files?

Thanks!
Erwin
Logged
vadka
Newbie
*
Offline Offline

Posts: 8



« Reply #1 on: June 15, 2007, 01:21:24 AM »

Hi

You should also set AllowOverride directive in your virtual server config (Directory section):
System Administration->Apache webserver->Virtual server(your virtual server)->Per-Directory options(select directory with .htaccess file)->Document Options

Set 'Options file can override..'  to  'Selected below...'  and select needed options (Authentication options in your case)


Logged
erwindr
Comodo Member
**
Offline Offline

Posts: 25


« Reply #2 on: June 15, 2007, 07:12:39 PM »

Whow!
This is very fine-grained! (Should it be *this* precise?)
However, the more I play with ZTL the more I like it.

Vadka:
I have one quite puzzling issue now, though:
As an example I set an .htaccess on the /stats directory. (webalizer graphs) Authentication is now required when browsing to http://www.mydomain.com/stats but NO authorization is required when going to http://mydomain.com/stats !!!

Can you give me a hint?

Thanks&Regards!
Erwin
Logged
vadka
Newbie
*
Offline Offline

Posts: 8



« Reply #3 on: June 18, 2007, 01:52:40 AM »

Hi

Strange situation...
Check again, but after authentication on http://www.mydomain.com/stats you should reopen your browser (because it saves auth info) and then go to http://mydomain.com/stats .
Logged
erwindr
Comodo Member
**
Offline Offline

Posts: 25


« Reply #4 on: June 19, 2007, 05:59:25 AM »

Thanks!

Now I REALLY feel stupid!   Shy
I thought my browser would regard mydomain.com and www.mydomain.com as two separate domains with the need for new login credentials.

You are correct and it works as advertised.

Regards!
Erwin
Logged
Tags:
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.08 seconds with 18 queries.
Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by 7dana.com