Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Using Edge.

Everything works fine except for the following issue.

Occasionally the site becomes unresponsive and the server hangs. This takes down other sites on the shared server.

It happens when copying a product to another category as a linked product. It also was happened when navigating backwards from a sub category to the parent IF the sub category headings/icons were turned on. Turning the category listing off prevented the issue, but as i said it now happens when copying a product to other categories. 

The server log says :

2018-03-04 12:45:26 Error 81.xx.xx.80   AH01797: client denied by server configuration: /var/www/vhosts/xxxxxxxx.co.uk/httpdocs/images/index.shtml, referer: http://xxxxxxxx.co.uk/index.php       Apache error

 

I suspect its to do with the .htaccess rewrites.

Ht access says '

# $Id$
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter

# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

# php_value session.use_trans_sid 0
# php_value register_globals 1

<IfModule mod_headers.c>
  Header unset ETag
</IfModule>
FileETag None

## EXPIRES CACHING ##
## https://gtmetrix.com/leverage-browser-caching.html ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##

--- end ---

 

Please can someone give me some guidance in resolving this 

Thanks 

Link to comment
Share on other sites

Actually I think I found the issue, the server has Fail2ban installed, and has banned my own i.p and that of someone who was also using the site admin. I think it is related to a rule in fail2ban. Disabling fail2ban has fixed the issue.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...