RE: htaccess files and apache

From: -=Brian Truter=- (brian_at_famvid.com)
Date: 04/29/04

  • Next message: Mike Cervi: "Seeking assistance with system faults"
    To: "'For users of Fedora Core releases'" <fedora-list@redhat.com>
    Date: Wed, 28 Apr 2004 17:11:32 -0500
    
    

     

    > -----Original Message-----
    > From: fedora-list-bounces@redhat.com
    > [mailto:fedora-list-bounces@redhat.com] 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@online.no 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@redhat.com
    > 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.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Mike Cervi: "Seeking assistance with system faults"

    Relevant Pages

    • Re: how to prevent reading of xml file from browser under a particular directory on FC5
      ... I have configured a HelpDesk Ticketing System on Fedora Core 5. ... are you sure your apache is configured to respect ... see if there are any errors parsing the .htaccess file. ... Can you change the name of the xml file to .site.xml? ...
      (Fedora)
    • Re: Force apache to parse html files as php
      ... their instruction is to add the following to the .htaccess file: ... our local in-office server for testing and viewing our sites is ... Apache 2.0.55 with PHP 4.4.4 on Windows XP Pro. ...
      (comp.lang.php)
    • Re: Revamptd site - does it look better?
      ... administered by the Sourceforge team. ... advice and tried setting up a .htaccess file for this and other ... If you run your own virtual server, then sure you'd expect to have ... My own server (Apache 2.54) is setting this to ...
      (uk.net.web.authoring)
    • Re: [PHP] Why cant I ini_set(upload_max_filesize)?
      ... IIS not Apache. ... also be set in .htaccess file:) ... > Windows, PHP 5.2. ... > PHP General Mailing List ...
      (php.general)
    • Re: direct link prevention on apache
      ... IP address to a .htaccess file, then redirect the browser to the URL ... > The other solution of using a scriptfile like download.php as a gateway ... > I would like Apache to handle this. ... If one requests a file in a certain ...
      (comp.lang.php)