httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Wilson <troyinfor...@yahoo.com>
Subject Re: [users@httpd] 500 internal server error running php application
Date Fri, 03 Sep 2010 17:42:21 GMT
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 <rambo@id.uw.edu.pl> wrote:

> From: Marcin 'Rambo' Roguski <rambo@id.uw.edu.pl>
> Subject: Re: [users@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 <troyinformer@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-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message