ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Server]TmaxSoft WebtoB 웹서버 http.m 설정
    Server 2023. 12. 14. 21:47

    WebtoB

     

    WebtoB 웹서버 사용을 위해 설정 파일 http.m 파일에 대해 ...

     

    우선 http.m 파일을 열고 (경로는 다를 수 있습니다.)

    vi /sw/webtob/conf/http.m

     

    안에 파일을 보면 

    *NODE
    WAS			    WEBTOBDIR       = "/sw/webtob",
                    DOCROOT         = "/sw/webtob/docs",
                    PORT            = "80",
                    SHMKEY          = 54000,
                    HTH             = 1,
                    ServiceOrder    = "uri,ext",
                    UpperDirRestrict = Y,
                    ERRORDOCUMENT   = "400,401,403,404,405,503",
                    JSVPORT         = 9900,
                    LOGPERM         = 0600,
                    LOGGING         = "acc_log",
                    ERRORLOG        = "err_log",
                    SYSLOG          = "syslog"
                    
    *VHOST
    v_vis	        DOCROOT         = "/sw/webtob/docs",
                    HOSTNAME        = "8.8.8.8", 		#해당 사이트 IP
                    HOSTALIAS       = "www.aaaa.com", 	#해당 사이트 도메인 
                    PORT            = "80",
                    ServiceOrder    = "uri,ext",
                    ERRORDOCUMENT   = "400,401,403,404,405,503",
                    URLRewrite      = Y,				#http 요청을 https로 redirect를 위함
                    URLRewriteConfig = "config/rewrite.conf", #redirect를 정의하는 파일 위치
                    LOGGING         = "acc_http",
                    ERRORLOG        = "err_http"
    
    v_vis_ssl       DOCROOT         = "/sw/webtob/docs",
                    HOSTNAME        = "8.8.8.8", 		#해당 사이트 IP
                    PORT            = "443",
                    ServiceOrder    = "uri,ext",
                    ERRORDOCUMENT   = "400,401,403,404,405,503",
                    SSLFLAG         = Y,
                    SSLNAME         = "ssl1",
                    LOGGING         = "acc_https",
                    ERRORLOG        = "err_https"
                    
    *SSL
    ssl1            CertificateFile         = "/sw/webtob/ssl/cert.pem", 
                    CertificateKeyFile      = "/sw/webtob/ssl/newreq.pem",
                    CertificateChainFile    = "/sw/webtob/ssl/caChain.pem",
                    #CACertificateFile       = "/sw/webtob/ssl/fullchain.pem",                
                    Protocols       = "-SSLv2, -SSLv3, -TLSv1, -TLSv1.1, TLSv1.2, TLSv1.3",
                    RequiredCiphers = "HIGH:MEDIUM:!SSLv2:!PSK:!SRP:!ADH:!AECDH:!EXP:!RC4:!IDEA:!3DES"
    
    *SVRGROUP
    g_svrg          SVRTYPE = JSV, VhostName = "v_vis, v_vis_ssl"
    
    *SERVER
    s_vis           SVGNAME = g_svrg, MinProc = 30, MaxProc = 30
    
    *URI
    u_vis         	Uri = "/", Svrtype = JSV, VhostName = "v_vis, v_vis_ssl", SvrName = "s_vis"
    
    *LOGGING
    ...
    
    *ERRORDOCUMENT
    400             status = 400, url = "/error.html"
    401             status = 401, url = "/error.html"
    402             status = 402, url = "/error.html"
    403             status = 403, url = "/error.html"
    404             status = 404, url = "/error.html"
    405             status = 405, url = "/error.html"
    503             status = 503, url = "/error.html"
    
    *EXT
    jsp             SvrType = JSV,  MimeType = "application/jsp", Options = "unset"
    htm             SvrType = HTML, MimeType = "text/html"
    html            SvrType = HTML, MimeType = "text/html"
    css             SvrType = HTML, MimeType = "text/css"
    js              SvrType = HTML, MimeType = "application/x-javascript"
    txt             SvrType = HTML, MimeType = "text/plain"
    ico             SvrType = HTML, MimeType = "image/x-icon"
    gif             SvrType = HTML, MimeType = "image/gif"
    jpg             SvrType = HTML, MimeType = "image/jpeg"
    png             SvrType = HTML, MimeType = "image/png"

     

    안에는 대충 이런식으로 정의되어 있다. 

     

    p7b파일을 pem 파일로 변환 파일이 cert.pem

    cert 파일을열어보면 Certifacated: 부분이 4번 반복되는데 2번째부터 마지막까지를 복사한게 caChain.pem

    newreq.pem파일은

    CA -newreq

    위 명령어로 만들어놨던 파일을 쓰면 된다.

    'Server' 카테고리의 다른 글

    [AWS EC2] Mongo DB 설치  (0) 2024.05.15
    [Server]WebtoB REVERSE_PROXY 사용  (0) 2023.12.14
    [SSL] convert p7b to pem  (0) 2023.12.14

    댓글

#dev-hahm#