<div dir="ltr">Hi,<br><div><br></div><div>I am running nginx version: nginx/1.24.0 on CentOS Linux release 7.9.2009 (Core). I have the below config file /etc/nginx/conf.d/upload.conf. </div><div><br></div><div>############################################################################################################################################<br></div><div>#cat upload.conf<br>server {<br>        listen 443 ssl;<br>        server_name <a href="http://software.example.com">software.example.com</a>;<br>        ssl_protocols          TLSv1.3 TLSv1.2;<br>        ssl_stapling off;<br>        ssl_stapling_verify on;<br>        ssl_certificate /etc/letsencrypt/live/<a href="http://software.example.com/fullchain.pem">software.example.com/fullchain.pem</a>;<br>        ssl_certificate_key /etc/letsencrypt/live/<a href="http://software.example.com/privkey.pem">software.example.com/privkey.pem</a>;<br>        ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;<br>        root /var/www/html/cbsoftwarebinaries;<br>        auth_basic "Restricted Access";<br>        auth_basic_user_file /etc/nginx/.htpasswd;<br>        autoindex on;<br>        ssl_prefer_server_ciphers on;<br>        ssl_dhparam /etc/ssl/certs/<a href="http://software.example.com/dhparam.pem">software.example.com/dhparam.pem</a>;<br>        add_header Strict-Transport-Security: max-age=63072000;<br>        #index index.html index.htm;<br><br>location /var/www/html/cbapibankingsoftwarebinaries {<br>    try_files $uri $uri/ =404;<br>}<br><br>}<br><br>server {<br>        listen 443 ssl;<br>        server_name <a href="http://software.example.com">software.example.com</a>;<br>        ssl_protocols          TLSv1.3 TLSv1.2;<br>        ssl_stapling off;<br>        ssl_stapling_verify on;<br>        ssl_certificate /etc/letsencrypt/live/<a href="http://software.example.com/fullchain.pem">software.example.com/fullchain.pem</a>;<br>        ssl_certificate_key /etc/letsencrypt/live/<a href="http://software.example.com/privkey.pem">software.example.com/privkey.pem</a>;<br>        ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;<br>  root /var/www/html/softwareuploads;<br>        ssl_prefer_server_ciphers on;<br>        ssl_dhparam /etc/ssl/certs/<a href="http://software.example.com/dhparam.pem">software.example.com/dhparam.pem</a>;<br>        add_header Strict-Transport-Security: max-age=63072000;<br>        index index.html index.php;<br><br><br> location = /upload.php {<br>        fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>        fastcgi_index index.php;<br>        include fastcgi_params;<br>        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>    }<br><br>    client_max_body_size 10M; # Adjust the maximum allowed file size<br><br>}<br></div><div>############################################################################################################################################</div><div><br></div><div>When I hit <a href="https://software.example.com">https://software.example.com</a> I get all the files and folders as per directory listing which is working as expected as per the below screenshot</div><div><br></div><div><img src="cid:ii_lq82g6eo2" alt="image.png" width="490" height="72"><br></div><div><br></div><div>When I am trying to upload files by hitting <a href="https://software.example.com/upload_form.html">https://software.example.com/upload_form.html</a> I am encountering http status code 405 Not Allowed. Please find inline a screenshot for your reference. <br></div><div><br></div><div><img src="cid:ii_lq82dzvz0" alt="image.png" width="196" height="135" style="margin-right: 0px;"><br></div><div><br></div><div><img src="cid:ii_lq82eoxk1" alt="image.png" width="196" height="111" style="margin-right: 0px;"><br></div><div><br></div><div>Please guide me. Thanks in advance.<br><br>Best Regards,<br><br>Kaushal<br></div><div><br></div></div>