Files
eapim-portal/djb-docs/OHS-StaticResource-설정.md
T
Rinjae b7869ad6e6
eapim-portal CI / build (push) Has been cancelled
eapim-portal Test / test (push) Has been cancelled
OHS 설정 업데이트:
- 정적 리소스 경로 `/apps/portal-static`으로 변경
- favicon 및 SetHandler 설정 추가
2026-09-07 11:04:20 +09:00

2.8 KiB

OHS Static Resource 설정 예시

<VirtualHost *:443>
    ServerName weblogic-djb.rinjae.kr

    <IfModule ossl_module>
        SSLEngine on
        SSLVerifyClient None
        SSLProtocol TLSv1.2 TLSv1.3
        SSLHonorCipherOrder on
        SSLCipherSuite TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        SSLWallet "${ORACLE_INSTANCE}/config/fmwconfig/components/${COMPONENT_TYPE}/instances/${COMPONENT_NAME}/keystores/default"

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
        </FilesMatch>

        <Directory "${ORACLE_INSTANCE}/config/fmwconfig/components/${COMPONENT_TYPE}/instances/${COMPONENT_NAME}/cgi-bin">
            SSLOptions +StdEnvVars
        </Directory>

        BrowserMatch "MSIE [2-5]" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0

        <IfModule mod_headers.c>
            Header always set Strict-Transport-Security "max-age=63072000; preload; includeSubDomains"
        </IfModule>
    </IfModule>

    Alias /css      /apps/portal-static/css
    Alias /js       /apps/portal-static/js
    Alias /img      /apps/portal-static/img
    Alias /images   /apps/portal-static/images
    Alias /webfonts /apps/portal-static/webfonts
    Alias /font     /apps/portal-static/font
    Alias /html     /apps/portal-static/html
    Alias /plugins  /apps/portal-static/plugins
    Alias /favicon.png /apps/portal-static/favicon.png

    <Directory "/apps/portal-static">
        Require all granted
        Options -Indexes
    </Directory>

    <LocationMatch "^/favicon\.png$|^/(css|js|img|images|webfonts|font|html|plugins)/">
        Header set Cache-Control "no-cache"
    </LocationMatch>

    <IfModule weblogic_module>
        <Location />
            DirectoryIndex disabled
            SetHandler weblogic-handler
            WebLogicHost 172.30.1.100
            WebLogicPort 39130
            DynamicServerList OFF
            ConnectTimeoutSecs 10
            ConnectRetrySecs 2
            WLProxySSL ON
        </Location>
    </IfModule>

    <Location /css>
        SetHandler None
    </Location>
    <Location /js>
        SetHandler None
    </Location>
    <Location /img>
        SetHandler None
    </Location>
    <Location /images>
        SetHandler None
    </Location>
    <Location /webfonts>
        SetHandler None
    </Location>
    <Location /font>
        SetHandler None
    </Location>
    <Location /html>
        SetHandler None
    </Location>
    <Location /plugins>
        SetHandler None
    </Location>
    <Location /favicon.png>
        SetHandler None
    </Location>
</VirtualHost>