apache httpd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gallerypost
    Confirmed User
    • Nov 2001
    • 711

    #1

    apache httpd

    Someone have idea how can i set my httpd.conf that it'll support .htaccess ?
  • mariuz
    Confirmed User
    • Aug 2001
    • 134

    #2
    maybe try looking for it?

    Comment

    • hyper
      Confirmed User
      • Mar 2002
      • 5294

      #3
      http://apache-server.com/tutorials/A...-htaccess.html

      Comment

      • mike503
        Confirmed User
        • May 2002
        • 2243

        #4
        AllowOverride All
        php/mysql guru. hosting, coding, all that jazz.

        Comment

        • SirTreX
          Confirmed User
          • Dec 2001
          • 514

          #5
          Sometimes it can quite difficult to persuade a system to let you create or edit a file with such a name. For this reason, you can change the name that Apache will use when looking for these per-directory config files by using the AccessFileName directive in your server's httpd.conf file. For instance,

          AccessFileName ht.acl

          will cause Apache to look for files named ht.acl instead of .htaccess. They'll be treated the same way, though, and they're still called '.htaccess files' for convenience.



          use:

          AllowOverride AuthConfig FileInfo Indexes Limits Options
          AllowOverride All

          Comment

          • gallerypost
            Confirmed User
            • Nov 2001
            • 711

            #6
            my httpd config :

            <VirtualHost 65.242.24.66>
            ServerAdmin [email protected]
            DocumentRoot /home/domainname/www
            ServerName domainname.com
            ErrorLog logs/domainname.com-error_log
            CustomLog logs/domainname.com-access_log common
            AddHandler cgi-script .cgi
            AccessFileName accessfile
            ScriptAlias /cgi-bin/ "/home/domainname/www/cgi-bin/"
            <Directory "/home/domainname/www/cgi-bin">
            Options None
            Order allow,deny
            Allow from all
            AllowOverride All
            </Directory>
            <Directory "/home/domainname/www">
            Options ExecCGI
            </Directory>
            ScriptAlias /index.html /home/domainname/www/cgi-bin/tm3/m
            </VirtualHost>


            And are is my accessfile :


            RewriteEngine on
            RewriteCond %{HTTP_REFERER} !^http://www.domainname.com.com.*$ [NC]
            RewriteCond %{HTTP_REFERER} !^http://domainname.com.*$ [NC]
            RewriteCond %{HTTP_REFERER} !^http://65.242.24.66.*$ [NC]
            RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F]

            ErrorDocument 302 http://www.domainname.com/
            ErrorDocument 400 http://www.domainname.com/
            ErrorDocument 401 http://www.domainname.com/
            ErrorDocument 403 http://www.domainname.com/
            ErrorDocument 404 http://www.domainname.com/
            ErrorDocument 408 http://www.domainname.com/
            ErrorDocument 500 http://www.domainname.com/

            Comment

            Working...