> -----Opprinnelig melding----- > Fra: fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx] > På vegne av -=Brian Truter=- > Sendt: 29. april 2004 00:12 > Til: 'For users of Fedora Core releases' > Emne: RE: htaccess files and apache > > > > > -----Original Message----- > > From: fedora-list-bounces@xxxxxxxxxx > > [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Bill Schoolcraft > > Sent: Wednesday, April 28, 2004 10:28 AM > > To: For users of Fedora Core releases > > Subject: Re: htaccess files and apache > > > > At Wed, 28 Apr 2004 it looks like neil composed: > > > > > > > > > > > tr-huso@xxxxxxxxx wrote: > > > > > > >Hi, this might be off topic for this list, but I would > > like to ask it anyway. > > > > > > > >I have an apacheserver runing on the fc1 and for some > > reason I don't > > > >get .htaccess-files to work. > > > >Any suggestions on solutions or websites to visit? > > > > > > > > > > > Make sure your AllowOverride statement in httpd.conf > > > (/etc/httpd/conf/httpd.conf) is setup correctly - the > > default config > > > file has comments on it. > > > > > > > I have the problem where if I enable a .htaccess file in one > > of my main directories of my webserver, all my "virtual hosts" > > webpages/domains will not even load. > > > > -- > > Bill Schoolcraft > > PO Box 210076 > > San Francisco CA 94121 > > http://billschoolcraft.com > > > > > > > > -- > > fedora-list mailing list > > fedora-list@xxxxxxxxxx > > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list > > > > > If those virtual hosts are in subdirectories of the main, then that is > working properly. If I remember correctly, if AllowOverride is enabled, > apache will check every directory in your web for the presence of an > .htaccess file. Their precidence is heirchial. If the a directory does not > have an .htaccess file, it inherits the settings from the .htaccess in > it's > parent directory. > > I believe that is how it works. I'm sure someone here can correct me if > I'm > wrong. > > Generally, setting directory permissions directly in the httpd.conf is > prefered, that way apache doesn't have to pause and check each directory > for > an .htaccess file, and you will get a little better performance. I put in the following line which didn't help... <Directory "/home/sites/%0/web"> AllowOverride All </Directory> # %0 is used since there are virtualhosts on the boks and the directory under sites is called f.instans www.home.net I've also noticed this: <Directory /> Options FollowSymLinks AllowOverride None </Directory> And was wondering if I should change none to all, but I bet that would be a security risk. Yours, Trond Husø