Re: 500 internal server error running php application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> wrote:

> From: Marcin 'Rambo' Roguski <rambo@xxxxxxxxxxxx>
> Subject: Re:  500 internal server error running php application
> To: users@xxxxxxxxxxxxxxxx
> Date: Friday, September 3, 2010, 12:46 PM
> On Fri, 3 Sep 2010 09:26:52 -0700
> (PDT)
> J Wilson <troyinformer@xxxxxxxxx>
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 


      


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux