Search found 5 matches
- 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...
- 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 нужно прописать как переменные и тогда он эти загало...
- 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...
- 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...
- 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 ?
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?