12-21-2017 10:49 AM
Hello all,
I seem to be having an issue with my web service. I am trying to add some static files and they are going beyond the current limit acceptable for transfer and I am getting the error 413 when deploying the service. The web service is on a cRIO and I have tried the fix found in this article, to no avail. My NIWebAppServer.conf file under /ni-rt/system/webserver looks like
# NI Web Application server configuration file.
#
# Global Directives
#
LoadModulePath ".:./..:./modules"
LoadModule niConfModule mod_niconf
NI.Conf.LoadINI NIWebAppServer.ini
LoadModule niSessionManagerModule mod_nisessmgr
LoadModule niAuthModule mod_niauth
LoadModule EspModule mod_niesp
LoadModule WSRuntime mod_niws
<NI.Conf.IfAnyHost SSLEnabled>
LoadModule niSslInitModule mod_nissl
LoadModule sslModule mod_ssl
</NI.Conf.IfAnyHost>
NI.Conf.Listen
#
# Directives that apply to the default server
#
NI.ServerName "NI Application Web Server"
InactivityTimeout 60
LimitRequestBody 200000000
LimitRequestForm 10000000
LimitUrl 1024
ThreadStack 64K
WorkerLimit 10
DocumentRoot "./../www"
TypesConfig mime.types
#
# Pipeline Definition
#
SetConnector netConnector
AddHandler niAuthHandler
AddHandler WSRuntime
AddHandler fileHandler ""
AddOutputFilter chunkFilter
<NI.Conf.EachVirtualHost>
<NI.Conf.IfCurrentHost SSLEnabled>
SSLEngine on
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
SSLProtocol all -SSLv2 -SSLv3
NI.Conf.ConfigureSSLCerts
</NI.Conf.IfCurrentHost>
NI.WSRuntime.Configuration user
</NI.Conf.EachVirtualHost>
The current LimitRequestBody is set to 200 MB. I had it set to 2 GB and this didn't work so I thought maybe the limit was too high. Anyone have any suggestions? What am I missing?
12-22-2017 02:11 PM
From that article it looks like 2GB is the limit. Do you know how big the file is that you are transferring?
Matthew C
NI | AE
12-22-2017 02:13 PM
I am not trying to transfer a file. I am trying to add static content to the web service. The total amount of the content is currently < 100 MB.