Q
Q
Qairat2017-01-10 08:26:03
Nginx
Qairat, 2017-01-10 08:26:03

How to configure caching on nginx+apache?

Hello!
There is a site potrebitel.kz
It turns out that it is based on nginx.
Now I can't do image caching on the client side.
How and where should I write to make everything work.
I did not find a word related to nginx anywhere on the site.
There is only .htacces and it says the following:

php_flag short_open_tag on
php_value short_open_tag 1
php_value display_errors On
php_value error_reporting 7
php_value max_execution_time 600
php_value upload_max_filesize 600M
php_value post_max_size 600M
RewriteEngine On
php_value magic_quotes 0
php_flag magic_quotes off
php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc off
Options +FollowSymlinks
Options -Indexes 
Rewritebase /
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/my
RewriteCond %{REQUEST_URI} !^/book
RewriteCond %{REQUEST_URI} !^/web-optimizer
RewriteCond %{REQUEST_URI} !^/uploads/
RewriteCond %{REQUEST_URI} !^/auto_backup
RewriteCond %{REQUEST_URI} !^/js
RewriteCond %{REQUEST_URI} !^/data/
RewriteCond %{REQUEST_URI} !^/details
RewriteCond %{REQUEST_URI} !^/self/
RewriteCond %{REQUEST_URI} !^/ssi/
RewriteCond %{REQUEST_URI} !^/sys/
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/show.php
RewriteCond %{REQUEST_URI} !^/style.css
RewriteCond %{REQUEST_URI} !^/ie-png.htc
RewriteCond %{REQUEST_URI} !^/logo.swf
RewriteCond %{REQUEST_URI} !\.(js|css|swf|htm(l)?)
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/cgi-bin
RewriteRule   ^(\/)?([^\?]*)(\/)?$ /show.php?id=$2&%{QUERY_STRING}  [L]

Even hosting did not find anything related to nginx.
How to fix the situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Mikhalev, 2017-01-10
@Endru9

Have you tried googling? nginx is not a website engine! it's a webserver!
And nginx doesn't handle .htaccess files.
Accordingly, you should contact either the hoster or the server admin!

A
Adgh, 2017-01-10
@Adgh

Look here
: http://ruhighload.com/post/How to+install+cache...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question