|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hi all
I wanted to ask if anybody knew a good info "package" regarding the famous .htaccess file. I know you can set all sorts of things with it. But I wanted see exactly what kinds of things you can set?
__________________
-- Tomi Kaistila -- Developer's Journal The more you learn, the more you know. The more you know, the more you forget. The more you forget, the less you know. |
|
#2
|
||||
|
||||
|
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
|||
|
|||
|
Start here -> http://httpd.apache.org/docs/mod/directives.html
Pick a directive, say AuthName: Syntax: AuthName auth-domain Context: directory, .htaccess Override: AuthConfig Status: core At the Context line, you can see directory and .htaccess, which means you can specify AuthName within <Directory> or in .htaccess. Whenever you see a directive's context that doesn't specify .htaccess, then such directive is not allowed in .htaccess. Now take a look at the Override line. As you can see, you need AuthConfig, that is, say http://domain.com/private/.htaccess you need this in httpd.conf: <Directory "/path/to/docroot/private"> ... AllowOverride AuthConfig ... </Directory> If you don't specify a <Directory "/path/to/docroot/private">, then you still need to specify AllowOverride AuthConfig at -> <Directory "/path/to/docroot">, because it's inherited from its parent directory unless you override it. |
|
#4
|
||||
|
||||
|
Thanks to you both. I'll be taking a look. I just hope I'm over my head here. Freebsd's explanation might have gone over but I'll try make sense out of it
![]() Take care |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Information about the .htaccess file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|