Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index
  • Search

Search found 5 matches

Go to advanced search

Advanced search
Search found 5 matches • Page 1 of 1
by AlektroNik
Thu Jun 04, 2020 10:06 am
Forum: Веб сервер
Topic: Заголовки header из .htaccess игнорируются на связке apache + nginx
Replies: 3
Views: 3766

Re: Заголовки header из .htaccess игнорируются на связке apache + nginx

https://stackoverflow.com/questions/12431496/nginx-read-custom-header-from-upstream-server Попробовал прописать рядом с действующими заголовка напрямую в конфиг nginx. Тремя разными способами, бес толку . # vim /etc/nginx/nginx.conf ... add_header Referrer-Policy $http_referrer_policy always; add_h...
  • Jump to post
by AlektroNik
Thu Jun 04, 2020 9:39 am
Forum: Веб сервер
Topic: Заголовки header из .htaccess игнорируются на связке apache + nginx
Replies: 3
Views: 3766

Re: Заголовки header из .htaccess игнорируются на связке apache + nginx

Есть вариант получше - использовать nginx+php-fpm и забыть про апач. Тогда придется переписывать для каждого движка правила из .htaccess. https://stackoverflow.com/questions/124 ... eam-server А вот тут я немного не понял. Т.е. мне в шаблон nginx нужно прописать как переменные и тогда он эти загало...
  • Jump to post
by AlektroNik
Wed Jun 03, 2020 6:29 pm
Forum: Веб сервер
Topic: Заголовки header из .htaccess игнорируются на связке apache + nginx
Replies: 3
Views: 3766

Заголовки header из .htaccess игнорируются на связке apache + nginx

Добрый вечер. Заголовки header из .htaccess игнорируются на связке apache + nginx . Пример заголовков из .htaccess: <IfModule mod_headers.c> Header always set Referrer-Policy "strict-origin-when-cross-origin" Header always set X-Content-Type-Options "nosniff" Header always set X-Frame-Options "SAMEO...
  • Jump to post
by AlektroNik
Wed Jun 03, 2020 5:37 pm
Forum: Web Server
Topic: Setting header expiration for files ?
Replies: 9
Views: 8493

Re: Setting header expiration for files ?

what reason to install nginx over apache? NGINX is faster gives the statics :) I can't believe NGINX can not proxy headers from .htaccess. I would like to believe that I just don't know how to cook it :) If you dont have nginx - use .htaccess. If indeed the only more or less acceptable option is to...
  • Jump to post
by AlektroNik
Wed Jun 03, 2020 5:06 pm
Forum: Web Server
Topic: Setting header expiration for files ?
Replies: 9
Views: 8493

Re: Setting header expiration for files ?

grayfolk wrote: ↑
Mon Jun 03, 2019 2:00 pm
You should setup headers in nginx config, not in apache.
Hi.
And there is the option of using .htaccess?
If different sites need to use different settings what to do?
Use templates with nginx is not convenient, it is necessary for each site template to create.
Maybe I can use .user.ini?
  • Jump to post

Search found 5 matches • Page 1 of 1

Go to advanced search



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password