<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div>Hello Guys,<br>
</div>
<div><br>
</div>
<div>We recently upgraded Nginx from nginx/1.9.12 - nginx/1.13.2, details of nginx/1.13.2 supported modules are given below. We are facing problem of automatic enabling of HTTP2 protocol on bsa1.example.com as we only enabled http2 on dsa1.example.com. Nginx
 configurations of both sites are given below.<br>
</div>
<div><br>
Supported urls of different Nginx configurations are given below respectively<br>
1 - https://dsa1.example.com/forums/user_avatar/www.example.com/cooltahir/25/1497380_1.png<br>
2 - https://bsa1.example.com/blog/wp-content/plugins/ultimate-responsive-image-slider/css/slider-pro.css?ver=4.6.1<br>
</div>
<div><br>
</div>
<div><br>
Site to verify Http2 protocol<br>
 https://tools.keycdn.com/http2-test<br>
<br>
<br>
----------------------------------------------<br>
    nginx version<br>
----------------------------------------------<br>
nginx version: nginx/1.13.2<br>
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) <br>
built with OpenSSL 1.0.2k  26 Jan 2017<br>
TLS SNI support enabled<br>
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
 --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp
 --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module
 --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-openssl=openssl-1.0.2k --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module
 --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
 --with-ld-opt=<br>
<br>
<br>
-----------------------------------<br>
dsa.conf<br>
-----------------------------------<br>
proxy_cache_path /var/www/example_dsa/ levels=2:2:2 keys_zone=pakwheels-dsa:50m max_size=300m inactive=525600m loader_files=400;<br>
<br>
server {<br>
    listen   80;<br>
        listen 443 ssl http2;<br>
        # Enable SSL<br>
    <br>
        #ssl_certificate /etc/nginx/certs/pakwheels_with_subdomains.pem;<br>
        #ssl_certificate_key /etc/nginx/certs/example_with_subdomains.key;<br>
    <br>
        ssl_certificate /etc/nginx/certs/pakwheels_with_subdomains_renew_28_august.pem;<br>
        ssl_certificate_key /etc/nginx/certs/example_with_subdomains_renew_28_august.key;<br>
   <br>
    <br>
        ssl_session_timeout 10m;<br>
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>
        ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES;<br>
        ssl_prefer_server_ciphers on;<br>
<br>
<br>
        <br>
<br>
        server_name dsa1.example.com dsa2.example.com dsa3.example.com dsa4.example.com;<br>
        <br>
<br>
<br>
       rewrite ^/forums/forums/(.*)$ /forums/$1 permanent;<br>
<br>
       location / {<br>
        gzip on;<br>
        gzip_min_length 100;<br>
        gzip_types text/plain text/xml application/xml text/css text/javascript application/javascript application/x-javascript text/x-component application/json application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject image/svg+xml
 application/x-font-ttf font/opentype application/octet-stream;<br>
        gzip_comp_level 1;<br>
        gzip_disable "MSIE [1-6]\.";<br>
        expires 12M;<br>
<br>
        # ProxySettings <br>
        proxy_cache_lock off;        <br>
        proxy_set_header Accept-Encoding "";<br>
        add_header X-Cache $upstream_cache_status;<br>
        add_header 'Access-Control-Allow-Origin' '*';<br>
        #proxy_ignore_headers Vary;<br>
        proxy_ignore_headers Set-Cookie;<br>
        resolver 213.133.100.100 213.133.99.99 213.133.98.98;<br>
                set $backend www.example.com;<br>
        proxy_pass https://$backend$request_uri;<br>
                #proxy_set_header Authorization "Basic cGFrYm9hcmQ6M3YzbnR1cjNzMDA3";<br>
                #proxy_pass_header  Authorization;<br>
        proxy_pass_header P3P;<br>
        proxy_cache_min_uses 1;<br>
        proxy_cache pakwheels-dsa;<br>
        proxy_cache_valid 200 365d;                  <br>
                proxy_cache_valid any 2s;    <br>
        proxy_cache_key pwstatic.pakwheels0""""$uri$is_args$args;<br>
           <br>
                proxy_intercept_errors on;<br>
                error_page 403 = @no_image;   <br>
                error_page 404 = @no_image;<br>
                error_page 400 = @no_image;<br>
<br>
        proxy_hide_header       x-amz-id-2;<br>
                proxy_hide_header       x-amz-request-id;<br>
            # END ProxySettings<br>
<br>
    }<br>
      <br>
       location @no_image {<br>
                return 404 '';<br>
                add_header Content-Type text/plain;<br>
        }<br>
<br>
    # Only for nginx-naxsi : process denied requests<br>
    #location /RequestDenied {<br>
        # For example, return an error code<br>
        #return 418;<br>
    #}<br>
<br>
    #error_page 404 /404.html;<br>
<br>
    # redirect server error pages to the static page /50x.html<br>
    #<br>
    #error_page 500 502 503 504 /50x.html;<br>
    #location = /50x.html {<br>
    #    root /usr/share/nginx/www;<br>
    #}<br>
<br>
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br>
    #<br>
    # deny access to .htaccess files, if Apache's document root<br>
    # concurs with nginx's one<br>
    #<br>
    #location ~ /\.ht {<br>
    #    deny all;<br>
    #}<br>
    <br>
 <br>
     location /status {<br>
        # Turn on nginx stats<br>
           stub_status on;<br>
        # I do not need logs for stats<br>
        access_log   off;<br>
           # Security: Only allow access from 192.168.1.100 IP #<br>
        allow 127.0.0.1;<br>
        allow 148.251.76.7;<br>
        # Send rest of the world to /dev/null #<br>
        deny all;<br>
   }<br>
}<br>
<br>
<br>
bsa<br>
--------------------------------------------------------------------<br>
proxy_cache_path /var/www/example_bsa/ levels=2:2:2 keys_zone=pakwheels-bsa:50m max_size=1000m inactive=525600m loader_files=400;<br>
<br>
server {<br>
    listen   80;<br>
        listen 443 ssl;<br>
        # Enable SSL<br>
<br>
        #ssl_certificate /etc/nginx/certs/pakwheels_with_subdomains.pem;<br>
        #ssl_certificate_key /etc/nginx/certs/example_with_subdomains.key;<br>
      <br>
        ssl_certificate /etc/nginx/certs/pakwheels_with_subdomains_renew_28_august.pem;<br>
        ssl_certificate_key /etc/nginx/certs/example_with_subdomains_renew_28_august.key;<br>
<br>
        ssl_session_cache shared:SSL:200m;<br>
        ssl_buffer_size 8k;<br>
        ssl_session_timeout 1440m;<br>
        #ssl_session_tickets off;<br>
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>
        ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES;<br>
        ssl_prefer_server_ciphers on;<br>
<br>
<br>
        server_name bsa1.example.com bsa2.example.com bsa3.example.com bsa4.example.com;<br>
<br>
       location / {<br>
        gzip on;<br>
        gzip_min_length 100;<br>
        gzip_types text/plain text/xml application/xml text/css text/javascript application/javascript application/x-javascript text/x-component application/json application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject image/svg+xml
 application/x-font-ttf font/opentype application/octet-stream;<br>
        gzip_comp_level 1;<br>
        gzip_disable "MSIE [1-6]\.";<br>
        expires 12M;     <br>
<br>
        # ProxySettings <br>
        proxy_cache_lock off;        <br>
        proxy_set_header Accept-Encoding "";<br>
        add_header X-Cache $upstream_cache_status;<br>
<br>
        #proxy_ignore_headers Vary;<br>
        proxy_ignore_headers Set-Cookie;<br>
        resolver 213.133.100.100 213.133.99.99 213.133.98.98;<br>
                set $backend staticn.example.com;<br>
        proxy_pass https://$backend$request_uri;    <br>
                #proxy_set_header Authorization "Basic cGFrYm9hcmQ6M3YzbnR1cjNzMDA3";<br>
                #proxy_pass_header  Authorization;<br>
        proxy_pass_header P3P;<br>
        proxy_cache_min_uses 1;<br>
        proxy_cache pakwheels-bsa;<br>
        proxy_cache_valid 200 365d;                  <br>
                proxy_cache_valid any 2s;    <br>
        proxy_cache_key pwstatic.pakwheels0""""$uri$is_args$args;<br>
        <br>
                proxy_intercept_errors on;<br>
                error_page 403 = @no_image;   <br>
                error_page 404 = @no_image;<br>
                error_page 400 = @no_image;<br>
<br>
        proxy_hide_header       x-amz-id-2;<br>
                proxy_hide_header       x-amz-request-id;<br>
            # END ProxySettings<br>
<br>
    }<br>
      <br>
       location @no_image {<br>
                return 404 '';<br>
                add_header Content-Type text/plain;<br>
        }<br>
<br>
    # Only for nginx-naxsi : process denied requests<br>
    #location /RequestDenied {<br>
        # For example, return an error code<br>
        #return 418;<br>
    #}<br>
<br>
    #error_page 404 /404.html;<br>
<br>
    # redirect server error pages to the static page /50x.html<br>
    #<br>
    #error_page 500 502 503 504 /50x.html;<br>
    #location = /50x.html {<br>
    #    root /usr/share/nginx/www;<br>
    #}<br>
<br>
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br>
    #<br>
    # deny access to .htaccess files, if Apache's document root<br>
    # concurs with nginx's one<br>
    #<br>
    #location ~ /\.ht {<br>
    #    deny all;<br>
    #}<br>
    <br>
 <br>
     location /status {<br>
        # Turn on nginx stats<br>
           stub_status on;<br>
        # I do not need logs for stats<br>
        #access_log   off;<br>
           # Security: Only allow access from 192.168.1.100 IP #<br>
        #allow 127.0.0.1;<br>
        # Send rest of the world to /dev/null #<br>
        allow 88.99.211.10;<br>
        deny all;<br>
<br>
   }<br>
}</div>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Regads,<br>
Junaid<br>
</p>
</div>
</body>
</html>