본문 바로가기

WAS/JBoss&WildFly

[JBoss EAP 7.4] 파일 업로드 제한

728x90

 

콘솔 - configuration - Subsystems - Web - Settings - Server - default-server - Listener - ${사용하는 LISTENER}

 

max-post-size를 설정하면 된다.

default값은 10MB (= 10485760 byte)

 

 

기본값으로만 되어 있는 경우 기동에 사용되는 config 파일에서는 이렇게 확인 할 수 있다.

        <subsystem xmlns="urn:jboss:domain:undertow:14.0" default-virtual-host="default-host" default-servlet-container="default" default-server="default-server" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}" default-security-domain="other">
            <byte-buffer-pool name="default"/>
            <buffer-cache name="default"/>
            <server name="default-server">
                <ajp-listener name="ajp" socket-binding="ajp"/>
                <http-listener name="default" socket-binding="http" max-post-size="10485760" redirect-socket="https" enable-http2="true"/>
                <https-listener name="https" socket-binding="https" ssl-context="applicationSSC" enable-http2="true"/>
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <http-invoker http-authentication-factory="application-http-authentication"/>
                </host>
            </server>
            <servlet-container name="default">
                <jsp-config/>
                <websockets/>
            </servlet-container>
            <handlers>
                <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
            </handlers>
            <application-security-domains>
                <application-security-domain name="other" security-domain="ApplicationDomain"/>
            </application-security-domains>
        </subsystem>

나의 환경에서는 ${JBOSS_DOMAIN_HOME}/configuration/standalone-ha.xml 에 기록되어있다.