В общем я более не знаю чего еще копать.
В nginx два конфига:
s1.conf
ssl.s1.conf
И конфиг httpd
default.conf
Если я правильно понимаю то nginx проксирует запросы на httpd изменяя заголовки.
Где взять инфо как правильно должны формироваться заголовки?
Может есть у кого рабочий конфиг?
В nginx два конфига:
s1.conf
Скрытый текст |
|---|
| # Default website server { listen 80 default_server; server_name _; server_name_in_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host:80; set $proxyserver "; set $docroot "/home/bitrix/www"; index index.php; root /home/bitrix/www; # Redirect to ssl if need if (-f /home/bitrix/www/.htsecure) { rewrite ^(.*)$ permanent; } # Include parameters common to all websites include bx/conf/bitrix.conf; # Include server monitoring locations include bx/server_monitor.conf; } |
ssl.s1.conf
Скрытый текст |
|---|
| # Default SSL certificate enabled website server { listen 443 default_server http2; server_name _; # Enable SSL connection include bx/conf/ssl.conf; server_name_in_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host:443; proxy_set_header HTTPS YES; set $proxyserver "; set $docroot "/home/bitrix/www"; index index.php; root /home/bitrix/www; ssl_certificate /etc/nginx/ssl/cert.crt; ssl_certificate_key /etc/nginx/ssl/private.key; # Include parameters common to all websites include bx/conf/bitrix.conf; # Include server monitoring API's include bx/server_monitor.conf; } |
И конфиг httpd
default.conf
Скрытый текст |
|---|
| Listen 127.0.0.1:8888 <VirtualHost 127.0.0.1:8888> ServerAdmin webmaster@localhost DocumentRoot /home/bitrix/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <DirectoryMatch .*\.svn/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.git/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.hg/.*> Require all denied </DirectoryMatch> <Directory /home/bitrix/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All DirectoryIndex index.php index.html index.htm php_admin_value session.save_path /tmp/php_sessions/www php_admin_value upload_tmp_dir /tmp/php_upload/www Require all granted </Directory> <Directory /home/bitrix/www/bitrix/cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/managed_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/local_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/stack_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/upload> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/bitrix/www/upload/support/not_image> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/images> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/bitrix/www/bitrix/tmp> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> ErrorLog logs/error_log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog logs/access_log combined <IfModule mod_rewrite.c> #Nginx should have "proxy_set_header HTTPS YES;" in location RewriteEngine On RewriteCond %{HTTP:HTTPS} =YES RewriteRule .* - [E=HTTPS:on,L] </IfModule> </VirtualHost> |
Если я правильно понимаю то nginx проксирует запросы на httpd изменяя заголовки.
Где взять инфо как правильно должны формироваться заголовки?
Может есть у кого рабочий конфиг?