Welcome! Log In Create A New Profile

Advanced

Re: Upload files and folders to nginx web server from the browser

Aleksandar Lazic via nginx
August 09, 2023 06:26PM
Hi.

On 2023-08-08 (Di.) 18:20, Kaushal Shriyan wrote:
> Hi,
>
> Is there a way to upload files to nginx web server
> https://software.mydomain.com https://software.mydomain.com from the
> browser ? I have the below nginx config file. I am running nginx
> version: nginx/1.24.0
> on CentOS Linux release 7.9.2009 (Core)

According to the page is there a Upload module for nginx.
https://www.nginx.com/resources/wiki/modules/upload/
https://github.com/fdintino/nginx-upload-module

If you don't want to rebuild nginx can you try to use any other upload
mechanism from the many solution out there based on several programming
languages.

https://html.duckduckgo.com/html?q=http%20upload%20server

One possible solution is this go solution.
https://github.com/git001/caddyv2-upload

Hope that helps
Regards
Alex

> # nginx -v
> nginx version: nginx/1.24.0
> # cat /etc/redhat-release
> CentOS Linux release 7.9.2009 (Core)
> #
>
> _cat /etc/nginx/conf.d/default.conf_
>
> server {
>       listen       80 default_server;
>       server_name software.mydomain.com;
>       return 301 https://$server_name$request_uri;
> }
>
> server {
>         listen 443 ssl;
>         server_name software.mydomain.com;
>         ssl_protocols          TLSv1.3 TLSv1.2;
>         ssl_stapling off;
>         ssl_stapling_verify on;
>         ssl_certificate
> /etc/letsencrypt/live/software.mydomain.com/fullchain.pem;
>         ssl_certificate_key
> /etc/letsencrypt/live/software.mydomain.com/privkey.pem;
>         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;
>         root /var/www/html/nbapibankingsoftwarebinaries;
>         auth_basic "Restricted Access";
>         auth_basic_user_file /etc/nginx/.htpasswd;
>         autoindex on;
>         ssl_prefer_server_ciphers on;
>         ssl_dhparam
> /etc/ssl/certs/software.mydomain.com/dhparam.pem;
>         add_header Strict-Transport-Security: max-age=63072000;
>
> location /var/www/html/cbapibankingsoftwarebinaries {
>     try_files $uri $uri/ =404;
> }
> }
>
>
> Please guide me. Thanks in Advance.
>
> Best Regards,
>
> Kaushal
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upload files and folders to nginx web server from the browser

kaushalshriyan August 08, 2023 12:22PM

Re: Upload files and folders to nginx web server from the browser

Aleksandar Lazic via nginx August 09, 2023 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready