Answer the question
In order to leave comments, you need to log in
How to know what to configure, apache or nginx?
There is a VPS with nginx (frontend) + apache (backend), MySQL DBMS, FTP server, PHP (mod_php or FastCGI) and PhpMyAdmin.
Explain what to configure to use css js png jpg jpeg gif browser caching and redirect from http to https, apache or nginx?
And then how to edit the nginx config if there are no rights to touch the file via FTP?
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Fri, 02 Sep 2016 05:45:37 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By : PHP/5.5.9-1ubuntu4.19
Set-Cookie: PHPSESSID=j9mteud6fd97m3t1q6ghnke9k7; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: dle_user_id=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max Age=0; path=/; httponly
Set-Cookie: dle_password=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max Age=0; path=/; httponly
Set-Cookie: dle_hash=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max Age=0; path=/; httponly
Answer the question
In order to leave comments, you need to log in
Explain what to configure to use css js png jpg jpeg gif browser caching and redirect from http to https, apache or nginx?Nginx, since clients communicate with it.
And then how to edit the nginx config if there are no rights to touch the file via FTP?Not via FTP.
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp)$ {
access_log off;
expires 10d;
break;
}
did not help, inserted via MC in SSH into the site's nginx config file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question