Nginx and Zencart
bwellsnc
bwellsnc at gmail.com
Mon Sep 10 12:16:47 UTC 2012
I am wanting to utilize nginx with zencart. The issue I am having
isn't getting Zencart to work, but to recreate the .htaccess files
that are located underneath Zencart's sub directories. Below is the
.htaccess file located in the images directory. I can block with no
problem, it's allowing that I am having a problem with:
#
# @copyright Copyright 2003-2010 Zen Cart Development Team
# @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
# @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this
directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of
script, be it PHP, PERL or whatever, can normally be executed if
ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any
sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit'
and 'Indexes' parameters to the AllowOverride configuration in your
apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the
OPTIONS directive below, you'll need to add 'Options' to the
AllowOverride list, if 'All' is not specified.
# Example:
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit Options Indexes
#</Directory>
###############################
# deny *everything*
<FilesMatch ".*">
Order Allow,Deny
Deny from all
</FilesMatch>
# but now allow just *certain* necessary files:
<FilesMatch ".*\.(jpe?g|JPE?G|gif|GIF|png|PNG|swf|SWF)$" >
Order Allow,Deny
Allow from all
</FilesMatch>
IndexIgnore */*
Thanks for any help you can give!
Brent
More information about the nginx
mailing list