0

Here is my Standalone.xml connector configurations

            <server name="default-server">
            <ajp-listener name="ajp-ofs" socket-binding="ajp" scheme="https"/>
            <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
            <https-listener name="https" socket-binding="https" max-post-size="100000000" security-realm="ApplicationRealm" enable-http2="true"/>
            <host name="default-host" alias="localhost">
                <location name="/" handler="welcome-content"/>
                <location name="/images" handler="images"/>
                <location name="/js" handler="js"/>
                <location name="/css" handler="css"/>
                <filter-ref name="server-header"/>
                <filter-ref name="x-powered-by-header"/>
            </host>
        </server>

and here are socket bindings

   <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
    <socket-binding name="http" port="${jboss.http.port:8080}"/>
    <socket-binding name="https" port="${jboss.https.port:8443}"/>
    <socket-binding name="iiop" interface="unsecure" port="3528"/>
    <socket-binding name="iiop-ssl" interface="unsecure" port="3529"/>

problem is when I upload a file on my local window machine it works fine but on other machines it is not entertaining

max-post-size="100000000" any suggestion or any possibility. its surprise for me their is proxy, webservices are called from a Apache/2.2.15 (Unix) and Apache is connected to wildfly10.0.1Final by mode_jk. For mode_jk we are using ajp listeners i have added max-post-size="100000000" in ajp listener and max-ajp-packet-size= "100000000" in ajp listener. but not succeed

user3311231
  • 33
  • 1
  • 8
  • please suggest me solution. I have wasted a lot of time already. – user3311231 Jul 11 '18 at 11:47
  • may be your server locate behind a proxy (nginx and etc) and this proxy has its own post size restriction – CyberWasp Jul 11 '18 at 21:03
  • thanks for reply CyberWasp, it is working well on a local machine but on live environment its creating problem with same configurations. – user3311231 Jul 12 '18 at 06:36
  • and their is no proxy . – user3311231 Jul 12 '18 at 11:23
  • @CyberWasp yes its surprise for me their is proxy, webservices are called from a Apache/2.2.15 (Unix) and Apache is connected to wildfly10.0.1Final by mode_jk. For mode_jk we are using ajp listeners i have added max-post-size="100000000" in ajp listener and max-ajp-packet-size= "100000000" in ajp listener. but not succeed – user3311231 Aug 07 '18 at 07:43
  • @CyberWasp `` or `` but no success – user3311231 Aug 07 '18 at 07:44
  • I don't use apache and jmod, but may be problem in apache settings. Like [this](https://serverfault.com/questions/875437/cant-increase-max-post-size-in-apache2) – CyberWasp Aug 07 '18 at 07:58
  • plelase help me. – user3311231 Aug 07 '18 at 12:50
  • I try setup locally apache2 and mod_jk. All works if I set max-post-size in ajp-listener. May be there are another proxy before apache? May be load balancer? – CyberWasp Aug 08 '18 at 07:28

0 Answers0