i am running nginx(nginx/1.10.0) as my webserver behind AWS ELB with drupal 7 and using php7.1 issue is http://url works fine but same site with https://url serves only https components of the page and not the non https components like css etc.
and ssl termination is happening on AWS ELB side
this is my nginx configuration
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name site_url;
root /var/www/html/smb;
index index.php index.html index.htm ;
error_page 404 = @smb;
location @smb {
rewrite ^(.*)$ /index.php?q=$1 last;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}