Actually I just placed this into my conf.d httpd config file for the individual 
domain in question, as per the .htaccess file instructions i posted earlier, 
and I got the below error on httpd restart:

Starting httpd: Syntax error on line 41 of /etc/httpd/conf.d/mydomain.com.conf:
deny not allowed here
                                                           [FAILED]

This is what I put in conf.d:

<Directory "/home/webspace/www/catalog/includes/">
AllowOverride Limit Options Indexes
</Directory>

<Directory "/home/webspace/www/catalog/zc_install/">
AllowOverride Limit Options Indexes
</Directory>

deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

<FilesMatch ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF)$">
  Order Allow,Deny
  Allow from all
</FilesMatch>

IndexIgnore */*

DirectoryIndex index.php

<FilesMatch ".*\..*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

<FilesMatch "(^$|^favicon.ico$|.*\.(php|js|css|jpg|gif|png|html)$)">
  Order Allow,Deny
  Allow from all
</FilesMatch>

IndexIgnore */*

--- On Fri, 9/3/10, Marcin 'Rambo' Roguski <ra...@id.uw.edu.pl> wrote:

> From: Marcin 'Rambo' Roguski <ra...@id.uw.edu.pl>
> Subject: Re: [us...@httpd] 500 internal server error running php application
> To: users@httpd.apache.org
> Date: Friday, September 3, 2010, 12:46 PM
> On Fri, 3 Sep 2010 09:26:52 -0700
> (PDT)
> J Wilson <troyinfor...@yahoo.com>
> wrote:
> 
> > Actually the .htaccess files are ok I think, they are
> provided with Zen
> > cart, what I need to do is follow instructions in
> their .htaccess files
> > to set up apache for this particular domain.
> 
> What about AllowOverride for the oparticular host/location?
> if it's set to None
> Most of .htaccess directives will generate 500.
> 
> -- 
> Elliptic paraboloids for sale.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to