Sendfile

Author: n | 2025-04-25

★★★★☆ (4.5 / 1519 reviews)

descent ii opengl

AS2 Connector AS2 Connector. Back Next. sendfiles sendfiles. Use the sendfiles resource to transfer files to a remote server. Before you construct a sendfiles request to transfer AS2 files sendfile free download. View, compare, and download sendfile at SourceForge

diner dash 2 restaurant rescue

Linux Zero-Copy Using sendfile(). sendfile() has been gradually

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. Send_Multiple_Types.sDownloadIt is easy to use SENDFILE "*.pdf" or perhaps RCVFILE "*.xml" to transfer all the files of a particular type, but what if you want to send both "*.pdf" and "*.xml"? Robo-FTP supports multiple wildcard specifications seperated by the pipe symbol "|". You can use SENDFILE to accomplish this goal quite easily.This example uploads only files where the last four characters of the file name are .pdf and .xml but, with a few modifications, you could change or add file types or even convert this example into a download script. 1 WORKINGDIR "c:\outbound" 2 ARCHIVEDIR "c:\outbound\sent" 3 ;; exit if bad archive path 4 IFERROR RETURN 5 FTPLOGON "MyRemoteSite" 6 IFERROR RETURN 7 SENDFILE "*.pdf|*.xml" /archive Browse complete list of scripts Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. cron_for_pause.sDownloadA typical requirement for a script is to perform a series of commands, wait a certain amount of time, then repeat.A simple way to do this is to use the PAUSE command like this: PAUSE /for=3600That command would pause Robo-FTP for 3600 seconds (one hour).However, scheduling requirements are often more complex. Some typical additional requirements might include:Only run during business hours (8am until 5pm)Only run Monday through FridayThe CRON command can be used instead of PAUSE to handle these additional requirements.This sample script uses CRON to pause script execution for 30 minutes, perform a series of uploads and downloads, then repeat. 1 :top 2 CRON "*/30 8-17 * * 1-5" "" 3 ;; The above line will cause the script to run every 30 4 ;; minutes during business hours (8am-5pm, Mon-Fri) 5 6 FTPLOGON "EDI Server" 7 8 ;; Outbound 9 FTPCD "/send" 10 WORKINGDIR "c:\out" 11 SENDFILE "*.mss" /delete 12 13 ;; Inbound 14 FTPCD "/received" 15 WORKINGDIR "C:\in" 16 RCVFILE "*" 17 18 FTPLOGOFF 19 GOTO top 20 Browse complete list of scripts

SendFile 1.0 Download - SendFile.exe

New Topic Post ReplyVisitors browsing this topic: 2Add to Bookmarks Author Sony Ericsson T230- help data transfer.kundi11Joined: Mar 15, 2005Posts: 3PMPosted: 2005-03-16 01:21hi ppli saw many posts on T230, many were useful but very techenical, i found the following method, try it out.Software required1. Hardware: Data cable+ Driver software(install this very essential) or SEMC DSS-20 SyncStation (sony product)+ driver2. Software: a) MOBILedit:(freeware) for sending sms, addressbook .. backup. link: b) SendFile 2.0.2:(freeware) for transfering other data .. like images, ringtones, games etc.. link: c) polyphonic wizard (shareware) for cable free data .. transfer but for this you will need GPRS (WAP) ... .. enabling by your mobile phone service provider.it worked for me, it might for you, mail me if any of you require assistance.kundi11whizkiddJoined: May 14, 2004Posts: > 500From: IndiaPM, WWWPosted: 2005-03-16 07:26Thanks for that. This message was posted from a T230govigovJoined: Jul 30, 2004Posts: > 500From: Back home - CochinPMPosted: 2005-03-16 07:40How did you like FMA? Mobile edit is cool.This message was posted from a K500whizkiddJoined: May 14, 2004Posts: > 500From: IndiaPM, WWWPosted: 2005-03-16 07:42I have the polyphonic wizard software. The demo version is very limited though. This message was posted from a T230waldekJoined: Aug 02, 2005Posts: 24PMPosted: 2005-08-19 16:30Right man, Mobiledit is a great one, check their web for latest news... Access the forum with a mobile phone via esato.mobi New TopicReply. AS2 Connector AS2 Connector. Back Next. sendfiles sendfiles. Use the sendfiles resource to transfer files to a remote server. Before you construct a sendfiles request to transfer AS2 files

SendFile (free) download Windows version

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. http_post_file.sDownloadNote: Make sure you really need to do a POST. If you are simply uploading a file it may be simpler to use the SENDFILE command (which uses the HTTP verb PUT instead of POST).Note: This process has been simplified as of v3.7. If you are using v3.7 or later, see Sample Script #26.As of v3.6.0, Robo-FTP supports automating communication via HTTP and HTTPS.One of the more complicated scenarios to automate is the process of communicating interactively with a web site and uploading data via a web form.This script provides some functions that greatly simplify this task.HTTP web forms come in 2 basic varieties:application/x-www-form-urlencodedThis is the default type of form. It can be submitted using either an HTTP GET or an HTTP POST.Submit via GETThis type is less common and is not the focus of this sample. Automating this type of form is very easy. You simply need to construct a url of the form: can be accomplished with a simple three-line Robo-FTP script: FTPLOGON "www.myurl.com" /servertype=HTTP FTPCD "subdir" RCVFILE "script.asp?field1=value1&field2=value2" /as "localfilename.html"This type of form can only be used for submitting ASCII characters.Submit via POSTThis is the most common type of form submission and is also used to submit ASCII characters in field=value pairs I am trying to enable multimedia (Mp3 and Mp4) file downloads on my newly setupped nginx/1.17.6 using HTTP2 server but the file started streaming instead of downloading. Here is my nginx.conf file:user www-data;worker_processes auto;error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;worker_rlimit_nofile 4096;events { worker_connections 4096; multi_accept on; # essential for linux, optmized to serve many clients with each thread use epoll;}http { include /etc/nginx/mime.types; ## Performance ## access_log off; access_log /var/log/nginx/access.log; open_file_cache max=10000 inactive=1200s; open_file_cache_valid 1200s; open_file_cache_min_uses 2; open_file_cache_errors off; ##Security #limit_req_zone $binary_remote_addr zone=one:30m rate=30r/m; #Allow 30 requests per minute (2 req per sec), check location tag for forcing policy #limit_conn_zone $binary_remote_addr zone=two:30m; #Limit the number of simultaneous connections from a single IP, check location tag for forcing policy #limit_conn_log_level warn; add_header X-Content-Type-Options nosniff; sendfile on; sendfile_max_chunk 5m; tcp_nopush on; keepalive_timeout 90; tcp_nodelay on; gzip on; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain application/x-javascript text/xml text/css application/xml; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; charset utf-8; include /etc/nginx/sites-enabled/*; include /etc/nginx/conf.d/stub_status.conf; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always; send_timeout 280s;}I am using the below code in php to initiate the download:header("Pragma: public"); // requiredheader("Expires: 0");header("Cache-Control: must-revalidate, post-check=0, pre-check=0");header("Cache-Control: private",false); // required for certain browsersheader("X-Accel-Redirect: /vtemp/" . $fname); //This is nginx specific, eqv. to XSendfileheader("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename="$fName"");header("Content-Transfer-Encoding: binary");header('Connection: close');Pagespeed module is also enabled (could this be an issue?, as this is not enabled on my other working server): pagespeed on; pagespeed FileCachePath "/var/cache/ngx_pagespeed/"; pagespeed RewriteLevel OptimizeForBandwidth; location ~ ".pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+" { add_header "" ""; } location ~ "^/pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { }The same config works on my other server having an olde nginx build and not using HTTP2 protocol, what am I missing here?

Yii2 sendfile response - Stack Overflow

App-protect enabledentrypoint.sh: Docker startup script which spins up all App Protect processes, must have executable permissionscustom_log_format.json: Optional user-defined security log format file (if not used - remove its references from the nginx.conf and Dockerfile)Log in to the Customer Portal and download the following two files:nginx-repo.keynginx-repo.crtCopy the files to the directory where the Dockerfile is located.Optionally, create custom_log_format.json in the same directory, for example:{ "filter": { "request_type": "all" }, "content": { "format": "splunk", "max_request_size": "any", "max_message_size": "10k" }}In the same directory create an nginx.conf file with the following contents:user nginx;worker_processes auto;load_module modules/ngx_http_app_protect_module.so;error_log /var/log/nginx/error.log debug;events { worker_connections 10240;}http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream app_backend_com { server 192.168.0.1:8000; server 192.168.0.1:8001; } server { listen 80; server_name app.example.com; proxy_http_version 1.1; app_protect_enable on; app_protect_security_log_enable on; app_protect_security_log "/etc/nginx/custom_log_format.json" syslog:server=127.0.0.1:514; location / { client_max_body_size 0; default_type text/html; # set your backend here proxy_pass proxy_set_header Host $host; } }} Important: Make sure to replace upstream and proxy pass directives in this example with relevant application backend settings.In the same directory create an entrypoint.sh file with the following content:#!/bin/sh/bin/su -s /bin/sh -c "/usr/share/ts/bin/bd-socket-plugin tmm_count 4 proc_cpuinfo_cpu_mhz 2000000 total_xml_memory 307200000 total_umu_max_size 3129344 sys_max_account_id 1024 no_static_config 2>&1 >> /var/log/app_protect/bd-socket-plugin.log &" nginx/usr/sbin/nginx -g 'daemon off;'Create a Docker image:For CentOS/Oracle Linux/Debian/Ubuntu/Alpine/Amazon Linux:DOCKER_BUILDKIT=1 docker build --no-cache --secret id=nginx-crt,src=nginx-repo.crt --secret id=nginx-key,src=nginx-repo.key -t app-protect .The DOCKER_BUILDKIT=1 enables docker build to recognize the --secret flag which allows the user to pass secret information to be used in the Dockerfile for building docker images in a safe way that will not end up stored in the final image. This is a recommended practice for the handling of the certificate and private key for NGINX repository access (nginx-repo.crt and nginx-repo.key files). More information here.For RHEL:podman build --no-cache --secret id=nginx-crt,src=nginx-repo.crt --secret id=nginx-key,src=nginx-repo.key -t app-protect .Notes:The --no-cache option tells Docker/Podman to build the image from scratch

how to set filename in express with sendfile ()?

OldVersionWelcome Guest, Login | Register WindowsMacLinuxGamesAndroidEnglishEnglishالعربيةDeutschEspañolFrançais日本のРусскийTürk中国的Upload SoftwareForumBlogRegisterLogin Stats: 30,053 versions of 1,966 programsPick a software title...to downgrade to the version you love!Windows » Development » VirtualBox » VirtualBox 3.0.10Get Updates on VirtualBoxVirtualBox 3.0.105,383 DownloadsVirtualBox 3.0.10 0out of5based on0 ratings.File Size: 68.98 MBDate Released: Oct 29, 2009Works on: Windows 2000 / Windows XP / Windows Vista / Windows 7 / Windows 8 / Windows Server 2003 / Windows Server 2010Doesn't Work on: Add info License: Add info Official Website: OracleTotal Downloads: 5,383Contributed by:Shane Parkar Rating:0 of 5Rate It!(0 votes) Tested: Free from spyware, adware and virusesVirtualBox 3.0.10 Change LogThis is a maintenance release. The following items were fixed and/or added: VMM: guest SMP stability fixes VMM: fixed guru meditation with nested paging and SMP guests (bug #5222) VMM: changed VT-x/AMD-V usage to detect other active hypervisors; necessary for e.g. Windows 7 XP compatibility mode (Windows & Mac OS X hosts only; bug #4239) VMM: guru meditation during SCO OpenServer installation and reboot (VT-x only; bug #5164) VMM: fixed accessed bit handling in certain cases (bug #5248) VMM: fixed VPID flushing (VT-x only) VMM: fixed broken nested paging for 64 bits guests on 32 bits hosts (AMD-V only; bug #5285) VMM: fixed loading of old saved states/snapshots (bug #3984) Mac OS X hosts: fixed memory leaks (bug #5084) Mac OS X hosts (Snow Leopard): fixed redraw problem in a dual screen setup (bug #4942) Windows hosts: installer updates for Windows 7 Solaris hosts: out of memory handled incorrectly (bug #5241) Solaris hosts: the previous fix for #5077 broke the DVD host support on Solaris 10 (VBox 3.0.8 regression) Linux hosts: fixed module compilation against Linux 2.6.32rc4 and later Guest Additions: fixed possible guest OS kernel memory exhaustion Guest Additions: fixed stability issues with SMP guests Windows Additions: fixed color depth issue with low resolution hosts, netbooks, etc. (bug #4935) Windows Additions: fixed NO_MORE_FILES error when saving to shared folders (bug #4106) Windows Additions: fixed subdirectory creation on shared folders (bug #4299) Linux Additions: sendfile() returned -EOVERFLOW when executed on a shared folder (bug #2921) Linux Additions: fixed incorrect disk usage value (non-Windows. AS2 Connector AS2 Connector. Back Next. sendfiles sendfiles. Use the sendfiles resource to transfer files to a remote server. Before you construct a sendfiles request to transfer AS2 files sendfile free download. View, compare, and download sendfile at SourceForge

Christersson SendFile for Sony Ericsson - Softpedia

Installer le paquet NGINX mis à jourPour configurer le dépôt yum pour RHEL/CentOS, créez un fichier nommé /etc/yum.repos.d/nginx.repo dont le contenu est le suivant:[nginx-stable]name=nginx stable repobaseurl= NGINX:sudo yum install nginxSupprimez le fichier suivant:sudo rm /etc/nginx/conf.d/default.confInstructions officiellesEnsuite, modifiez le fichier de configuration NGINX /etc/nginx/nginx.conf comme suit:user nginx;worker_processes 1;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;events { worker_connections 1024;}http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf;}Installer le dépôt EPELsudo yum install epel-releaseInstaller et configurer PostgreSQLPour installer EPEL sur CentOS 9, utilisez les commandes suivantes:sudo yum config-manager --set-enabled crbsudo yum install epel-release epel-next-releasePour installer EPEL sur RHEL, utilisez les commandes suivantes:sudo subscription-manager repos --enable codeready-builder-for-rhel-$REV-$(arch)-rpmssudo yum -y install manuellement $REV par votre version du système d'exploitation (8 pour des versions 8.x, 9 pour des versions 9.x et ainsi de suite).Initialisez la base de données PostgreSQLsudo service postgresql initdb sudo chkconfig postgresql onActivez la méthode d'authentification 'trust' pour hôte local IPv4 et IPv6Ouvrez le fichier avec un éditeur de texte /var/lib/pgsql/data/pg_hba.conf .Trouvez la chaîne host all all 127.0.0.1/32 ident et remplacez-la par:host all all 127.0.0.1/32 trustEnsuite, trouvez la chaîne host all all ::1/128 ident set remplacez-la par:host all all ::1/128 trustEnregistrez les modifications.Réinitialisez le service PostgreSQL:sudo service postgresql restartCréez la base de données et l'utilisateur de PostgreSQL:Vous pouvez indiquer le nom d'utilisateur et le mot de passe est à votre choix.Tout d'abord, il faut lancer la commandecd /tmppour éviter les messages d'avertissement could not change directory to "/root" si elle est exécutée depuis la racine. Ensuite, il faut créer la base de données et l'utilisateur:sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';"sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice OWNER onlyoffice;"Installer Redissudo yum install redisLancez le service redis et activez l'exécution au démarrage:sudo service redis startsudo systemctl enable redisInstaller RabbitMQssudo curl -s | sudo bashERLANG_LATEST_VERSION=$(curl -s | sed -n 's/.*"tag_name":\s*"v\([^"]*\)".*/\1/p' | head -1)sudo rpm -ivh manuellement $REV par votre version du système d'exploitation (8 pour des versions 8.x, 9 pour des versions 9.x et ainsi de suite).sudo yum install rabbitmq-serverVous pouvez également installer RabbitMQ sur CentOS 8 ou CentOS 9 depuis le site officiel.Lancez le service rabbitmq et activez l'exécution au démarrage:sudo systemctl enable --now rabbitmq-server

Comments

User9381

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. Send_Multiple_Types.sDownloadIt is easy to use SENDFILE "*.pdf" or perhaps RCVFILE "*.xml" to transfer all the files of a particular type, but what if you want to send both "*.pdf" and "*.xml"? Robo-FTP supports multiple wildcard specifications seperated by the pipe symbol "|". You can use SENDFILE to accomplish this goal quite easily.This example uploads only files where the last four characters of the file name are .pdf and .xml but, with a few modifications, you could change or add file types or even convert this example into a download script. 1 WORKINGDIR "c:\outbound" 2 ARCHIVEDIR "c:\outbound\sent" 3 ;; exit if bad archive path 4 IFERROR RETURN 5 FTPLOGON "MyRemoteSite" 6 IFERROR RETURN 7 SENDFILE "*.pdf|*.xml" /archive Browse complete list of scripts

2025-03-28
User3986

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. cron_for_pause.sDownloadA typical requirement for a script is to perform a series of commands, wait a certain amount of time, then repeat.A simple way to do this is to use the PAUSE command like this: PAUSE /for=3600That command would pause Robo-FTP for 3600 seconds (one hour).However, scheduling requirements are often more complex. Some typical additional requirements might include:Only run during business hours (8am until 5pm)Only run Monday through FridayThe CRON command can be used instead of PAUSE to handle these additional requirements.This sample script uses CRON to pause script execution for 30 minutes, perform a series of uploads and downloads, then repeat. 1 :top 2 CRON "*/30 8-17 * * 1-5" "" 3 ;; The above line will cause the script to run every 30 4 ;; minutes during business hours (8am-5pm, Mon-Fri) 5 6 FTPLOGON "EDI Server" 7 8 ;; Outbound 9 FTPCD "/send" 10 WORKINGDIR "c:\out" 11 SENDFILE "*.mss" /delete 12 13 ;; Inbound 14 FTPCD "/received" 15 WORKINGDIR "C:\in" 16 RCVFILE "*" 17 18 FTPLOGOFF 19 GOTO top 20 Browse complete list of scripts

2025-04-24
User7861

New Topic Post ReplyVisitors browsing this topic: 2Add to Bookmarks Author Sony Ericsson T230- help data transfer.kundi11Joined: Mar 15, 2005Posts: 3PMPosted: 2005-03-16 01:21hi ppli saw many posts on T230, many were useful but very techenical, i found the following method, try it out.Software required1. Hardware: Data cable+ Driver software(install this very essential) or SEMC DSS-20 SyncStation (sony product)+ driver2. Software: a) MOBILedit:(freeware) for sending sms, addressbook .. backup. link: b) SendFile 2.0.2:(freeware) for transfering other data .. like images, ringtones, games etc.. link: c) polyphonic wizard (shareware) for cable free data .. transfer but for this you will need GPRS (WAP) ... .. enabling by your mobile phone service provider.it worked for me, it might for you, mail me if any of you require assistance.kundi11whizkiddJoined: May 14, 2004Posts: > 500From: IndiaPM, WWWPosted: 2005-03-16 07:26Thanks for that. This message was posted from a T230govigovJoined: Jul 30, 2004Posts: > 500From: Back home - CochinPMPosted: 2005-03-16 07:40How did you like FMA? Mobile edit is cool.This message was posted from a K500whizkiddJoined: May 14, 2004Posts: > 500From: IndiaPM, WWWPosted: 2005-03-16 07:42I have the polyphonic wizard software. The demo version is very limited though. This message was posted from a T230waldekJoined: Aug 02, 2005Posts: 24PMPosted: 2005-08-19 16:30Right man, Mobiledit is a great one, check their web for latest news... Access the forum with a mobile phone via esato.mobi New TopicReply

2025-04-14
User8182

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment. http_post_file.sDownloadNote: Make sure you really need to do a POST. If you are simply uploading a file it may be simpler to use the SENDFILE command (which uses the HTTP verb PUT instead of POST).Note: This process has been simplified as of v3.7. If you are using v3.7 or later, see Sample Script #26.As of v3.6.0, Robo-FTP supports automating communication via HTTP and HTTPS.One of the more complicated scenarios to automate is the process of communicating interactively with a web site and uploading data via a web form.This script provides some functions that greatly simplify this task.HTTP web forms come in 2 basic varieties:application/x-www-form-urlencodedThis is the default type of form. It can be submitted using either an HTTP GET or an HTTP POST.Submit via GETThis type is less common and is not the focus of this sample. Automating this type of form is very easy. You simply need to construct a url of the form: can be accomplished with a simple three-line Robo-FTP script: FTPLOGON "www.myurl.com" /servertype=HTTP FTPCD "subdir" RCVFILE "script.asp?field1=value1&field2=value2" /as "localfilename.html"This type of form can only be used for submitting ASCII characters.Submit via POSTThis is the most common type of form submission and is also used to submit ASCII characters in field=value pairs

2025-04-15
User6967

I am trying to enable multimedia (Mp3 and Mp4) file downloads on my newly setupped nginx/1.17.6 using HTTP2 server but the file started streaming instead of downloading. Here is my nginx.conf file:user www-data;worker_processes auto;error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;worker_rlimit_nofile 4096;events { worker_connections 4096; multi_accept on; # essential for linux, optmized to serve many clients with each thread use epoll;}http { include /etc/nginx/mime.types; ## Performance ## access_log off; access_log /var/log/nginx/access.log; open_file_cache max=10000 inactive=1200s; open_file_cache_valid 1200s; open_file_cache_min_uses 2; open_file_cache_errors off; ##Security #limit_req_zone $binary_remote_addr zone=one:30m rate=30r/m; #Allow 30 requests per minute (2 req per sec), check location tag for forcing policy #limit_conn_zone $binary_remote_addr zone=two:30m; #Limit the number of simultaneous connections from a single IP, check location tag for forcing policy #limit_conn_log_level warn; add_header X-Content-Type-Options nosniff; sendfile on; sendfile_max_chunk 5m; tcp_nopush on; keepalive_timeout 90; tcp_nodelay on; gzip on; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain application/x-javascript text/xml text/css application/xml; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; charset utf-8; include /etc/nginx/sites-enabled/*; include /etc/nginx/conf.d/stub_status.conf; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always; send_timeout 280s;}I am using the below code in php to initiate the download:header("Pragma: public"); // requiredheader("Expires: 0");header("Cache-Control: must-revalidate, post-check=0, pre-check=0");header("Cache-Control: private",false); // required for certain browsersheader("X-Accel-Redirect: /vtemp/" . $fname); //This is nginx specific, eqv. to XSendfileheader("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename="$fName"");header("Content-Transfer-Encoding: binary");header('Connection: close');Pagespeed module is also enabled (could this be an issue?, as this is not enabled on my other working server): pagespeed on; pagespeed FileCachePath "/var/cache/ngx_pagespeed/"; pagespeed RewriteLevel OptimizeForBandwidth; location ~ ".pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+" { add_header "" ""; } location ~ "^/pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { }The same config works on my other server having an olde nginx build and not using HTTP2 protocol, what am I missing here?

2025-04-21
User4571

App-protect enabledentrypoint.sh: Docker startup script which spins up all App Protect processes, must have executable permissionscustom_log_format.json: Optional user-defined security log format file (if not used - remove its references from the nginx.conf and Dockerfile)Log in to the Customer Portal and download the following two files:nginx-repo.keynginx-repo.crtCopy the files to the directory where the Dockerfile is located.Optionally, create custom_log_format.json in the same directory, for example:{ "filter": { "request_type": "all" }, "content": { "format": "splunk", "max_request_size": "any", "max_message_size": "10k" }}In the same directory create an nginx.conf file with the following contents:user nginx;worker_processes auto;load_module modules/ngx_http_app_protect_module.so;error_log /var/log/nginx/error.log debug;events { worker_connections 10240;}http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream app_backend_com { server 192.168.0.1:8000; server 192.168.0.1:8001; } server { listen 80; server_name app.example.com; proxy_http_version 1.1; app_protect_enable on; app_protect_security_log_enable on; app_protect_security_log "/etc/nginx/custom_log_format.json" syslog:server=127.0.0.1:514; location / { client_max_body_size 0; default_type text/html; # set your backend here proxy_pass proxy_set_header Host $host; } }} Important: Make sure to replace upstream and proxy pass directives in this example with relevant application backend settings.In the same directory create an entrypoint.sh file with the following content:#!/bin/sh/bin/su -s /bin/sh -c "/usr/share/ts/bin/bd-socket-plugin tmm_count 4 proc_cpuinfo_cpu_mhz 2000000 total_xml_memory 307200000 total_umu_max_size 3129344 sys_max_account_id 1024 no_static_config 2>&1 >> /var/log/app_protect/bd-socket-plugin.log &" nginx/usr/sbin/nginx -g 'daemon off;'Create a Docker image:For CentOS/Oracle Linux/Debian/Ubuntu/Alpine/Amazon Linux:DOCKER_BUILDKIT=1 docker build --no-cache --secret id=nginx-crt,src=nginx-repo.crt --secret id=nginx-key,src=nginx-repo.key -t app-protect .The DOCKER_BUILDKIT=1 enables docker build to recognize the --secret flag which allows the user to pass secret information to be used in the Dockerfile for building docker images in a safe way that will not end up stored in the final image. This is a recommended practice for the handling of the certificate and private key for NGINX repository access (nginx-repo.crt and nginx-repo.key files). More information here.For RHEL:podman build --no-cache --secret id=nginx-crt,src=nginx-repo.crt --secret id=nginx-key,src=nginx-repo.key -t app-protect .Notes:The --no-cache option tells Docker/Podman to build the image from scratch

2025-04-17

Add Comment