Welcome! Log In Create A New Profile

Advanced

Nginx and Zencart

bwellsnc
September 10, 2012 08:18AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx and Zencart

bwellsnc September 10, 2012 08:18AM

Re: Nginx and Zencart

bwellsnc September 14, 2012 05:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready