PDA

View Full Version : where is the default (non-defined vhost) htaccess located?


aww
09-15-2007, 06:20 AM
I am confused, where does litespeed look for htaccess when a non-existant sub-domain vs. subdirectory is requested?

ie.

http://bad.example.com
and/or
http://bad.example.com/bad/

(where example.com is parked with wildcard dns)

Because something isn't right.

The first one (bad.example.com)
seems to look here:
/usr/local/apache/htdocs/
which is correct based on cpanel's httpd.conf

but the second one (bad.example.com/bad)
gives a generic 404 and ignores any .htaccess file located in /usr/local/apache/htdocs/

I don't have a standard apache setup to compare to anymore but ignoring htaccess doesn't seem to be quite the right behavior unless it simply doesn't know where to look - so where's the default htaccess then?

mistwang
09-15-2007, 07:55 AM
maybe allowoverride is disabled for directory /usr/local/apache/htdocs/

aww
09-15-2007, 08:01 AM
As usual, you are correct. Please pardon my ignorance!