가상 호스트Web Server에 기본적으로 존재하는 host인 Main Host를 제외한 나머지 host를 Virtual Host라고 한다.하나의 Web Server에는 Main Host 외에 별도의 디렉터리를 가진 여러개의 Host를 설정하여 사용할 수 있다.1. 가상 호스트 설정가상 호스트 설정은 httpd.conf 파일과 httpd-vhosts.conf 파일을 httpd.conf 파일에 include하여 설정이 가능하다. 여러 도메인을 관리하는 경우 httpd-vhosts.conf 파일을 사용하는 것이 좋다.1.1. Vhost 설정httpd.conf 파일에서 httpd-vhosts.conf include 설정# Virtual hostsInclude conf/extra/httpd-vhosts.conf..
WEB
WebtoB 설정 파일WebtoB 설정 파일 이름은 http.m이며, 위치는 ${WEBTOB_HOME}/conf/ 디렉터리에 위치해 있다.1. http.m 파일아래는 설치 시 기본적으로 설정되어 있는 WebtoB5.0.0.4 Version http.m 파일이다.*DOMAINwebtob1*NODE${NODENAME} WEBTOBDIR="/sw/web/webtob", SHMKEY = 54000, DOCROOT="/sw/web/webtob/docs", PORT = "8080", HTH = 1, #Group = "nobody", #User = "n..
Nginx 설정 파일Nginx 설정 파일은 nginx.conf이며, ${NGINX_HOME}/conf 디렉터리에 존재한다.1. nginx.conf아래는 nginx.conf 파일 예시이다.user web; # nginx 프로세스를 기동 시키는 계정worker_processes 1;error_log logs/error.log debug;pid logs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] ..
개 요Nginx사용 시 File Upload 서비스를 수행하다가 HTTP 413 client intended to send too large body 에러를 확인한 경우 해결하는 방법을 정리하였다.1. 원 인Nginx의 경우 최대 용량을 지정하는 옵션인 client_max_body_size가 있다. 해당 옵션 값의 기본값은 1m이며 HTTP Client의 Content-Length 헤더값이 이보다 클 경우 Nginx는 HTTP 413 Error(Requeset Entity Too Large)를 전송하며 위와 같은 메시지 화면을 보여준다.Nginx 로그에는 아래와 같은 내용이 확인 된다.2024/10/15 05:54:59 [error] 242: *160826 client intended to send ..