본문 바로가기 메뉴 바로가기

Jacob Baek's home

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jacob Baek's home

검색하기 폼
  • all (216)
    • private (3)
      • diary (0)
      • graduateschool (3)
      • important thing (0)
      • my project (0)
      • study (0)
    • Cloud (81)
      • Private Cloud (35)
      • Public Cloud (1)
      • Cloud Native (16)
      • Architecture&Tech (2)
      • Kubernetes (27)
    • Security (11)
      • programming (0)
      • Architecture&Tech (3)
      • System&Tools (4)
      • Cloud Native (3)
    • DevOps (27)
      • System&Tools (27)
      • Architecture&Tech (0)
    • Network (6)
      • System&Tools (5)
      • Architecture&Tech (1)
    • Storage (5)
      • Architecture&Tech (1)
      • System&Tools (4)
    • os (26)
      • Linux (24)
      • Windows (2)
      • Embedded&Mobile&Etcs (0)
    • programming (17)
      • python (1)
      • c/c++ (1)
      • Java (1)
      • kernel (0)
      • Scripts (5)
      • devtools (2)
      • protocol (1)
      • common (1)
      • sw engineering (1)
      • Web Programming (0)
      • etc (4)
    • Server (16)
      • SystemMGAuto (0)
      • WebServer (6)
      • VirtualServer (1)
      • EtcServer (9)
    • quailty assurance (4)
      • Theory (1)
      • System & Tools (3)
    • ITtech (2)
    • database (0)
    • language (0)
    • Trips (0)
    • music (0)
    • etc (2)
  • 방명록

Server/WebServer (6)
response custom error page from proxy server

일반적으로 사용자의 요청에 대한 error 가 발생되면 origin 서버에서 error page를 rendering 하여 응답하게 된다. 만약 proxy 환경이라면 이를 proxy 서버에서 처리할수 있게 설정이 가능하다. location ~ \.(7z|avi|avif|apkbin|bmp|bz2|png|...|jpg)$ { ... proxy_pass http://192.168.1.1; proxy_intercept_errors on; error_page 404 500 501 502 503 /error_page.html; ... } location = /error_page.html { root /tmp; ##

Server/WebServer 2022. 3. 3. 18:19
How to use nginx lua module

먼저 가정은 별도의 lua module loading 과정은 사전에 이루어져 있다 보고 기술하였다. 기본 workflow를 알아둘 필요가 있다. https://cloud.githubusercontent.com/assets/2137369/15272097/77d1c09e-1a37-11e6-97ef-d9767035fc3e.png 위 flow에 기반하여 lua 모듈이 동작되어질 위치를 확인하고 다음과 같은 module을 통해 호출을 하면된다. (주로 사용해본 모듈은 rewrite_by_lua_xxx, access_by_lua_xxx, content_by_lua_xxx, set_by_lua_xxx 등이 있다.) https://github.com/openresty/lua-nginx-module#rewrite_by_..

Server/WebServer 2022. 2. 21. 21:47
serve single file on NGINX

아래 주소와 같이 바로 다운로드 및 실행이 가능한 환경을 만들고자 하는 need가 생겨 nginx web server로 구현하는 방법을 알아보았다. https://get.k3s.io/ nginx에서는 다음과 같은 setting을 추가하면 된다. (여기서는 8088의 임의의 port로 listen한 대상이 파일의 content를 포함하여 출력되도록 하였다.) server { listen 8088; location "/" { add_header Content-Type text/plain; try_files /k3s.sh =404; }결국 browser상에서 해당 파일을 뭐로 인지할것인지에 대한 부분으로 header에 content-type을 text/plain으로 표기하여 browser에서는 이를 text로..

Server/WebServer 2021. 3. 23. 22:30
print local ip address and hostname using php on httpd

APACHEapache web server에 php를 이용하여 local ip 주소 및 hostname을 출력하는 방법환경은 CentOS 7에 apache httpd 2.4.6, php 5.4.16 기반으로 진행했다. 우선 apache httpd web server를 설치한다. yum install httpd 이후 local ip address와 hostname을 출력하도록 해주는 php를 설치한다. yum install php -y 위 command를 이용해 설치를 하게 되면 httpd/conf.d/php.conf 가 자동으로 생성된다.해당 파일에 아래와 같은 설정이 추가되어 있는지 확인한다. SetHandler application/x-httpd-php 위와 같은 설정이 자동으로 uncomment 되..

Server/WebServer 2017. 4. 17. 10:50
Apache Traffic Server (ATS)

ATS는?고성능 웹 proxy / cahce 서버 특징- 멀티스레드 서버- 이벤트 드리븐 매커니즘 설치 방법on CentOS- yum install openssl-devel tcl-devel expat-devel pcre-devel- wget http://mirror.apache-kr.org/trafficserver/trafficserver-4.2.0.tar.bz2- wget http://www.apache.org/dyn/closer.cgi/trafficserver/trafficserver-4.2.0.tar.bz2- 참고사이트 : https://cwiki.apache.org/confluence/display/TS/CentOS# configure --prefix=/usr/local/ats (설치 디렉토리 ..

Server/WebServer 2014. 4. 29. 16:24
apache httpd module

apache 에서 추가적인 기능 사용을 위해 모듈을 추가할 수 있다. 실제로 모듈을 새롭게 받아야 하는 경우도 있고 기존 disable 되어 있는 모듈을 enable 하여 사용할 수도 있다. module 사용방법 리눅스의 경우는 configuration 당시 모듈을 지정하여 같이 컴파일 할 수 있다. 우분투의 경우 a2enmod 명령을 통해 모듈에 대한 enable / disable을 수행할 수 있다. (/etc/apache2/sites-available/default 설정파일 및 a2enmod 명령어 참고할것) 윈도우는 module 이라는 폴더내에 기본 모듈이 존재하며 만약 존재하지 않는 경우 다운로드 받아 해당 폴더에 복사하고 httpd.conf 파일내에 Loadmodule 옵션을 추가하면 된다. m..

Server/WebServer 2012. 4. 3. 10:59
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
  • Postee
  • kubent(no trouble)
  • Kata Container on AKS
  • Vertical Pods Autoscaler
최근에 달린 댓글
  • 감사합니다 부족한 질문이었지만 정말 좋은 답변 감사드립⋯
  • 안녕하세요. 먼저 질문주신 내용을 제가 이해하기론 두가⋯
  • 안녕하세요 ㅎㅎ 구글에서 돌고 돌다가 선생님의 블로그까⋯
Total
141,310
Today
7
Yesterday
193
링크
  • Cyuu
TAG
  • jenkins
  • OpenStack
  • openstacksdk
  • elasticsearch
  • Terraform
  • socket
  • metallb
  • kubernetes install
  • kata container
  • ceph
  • K3S
  • crashloopbackoff
  • kubernetes
  • mattermost
  • minio
  • nginx-ingress
  • vmware openstack
  • openstack backup
  • Jenkinsfile
  • galera
  • wsl2
  • minikube
  • DevSecOps
  • ansible
  • aquasecurity
  • ConEmu
  • Helm Chart
  • boundary ssh
  • hashicorp boundary
  • macvlan
more
«   2023/03   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함
  • 2023/03 (3)
  • 2023/02 (4)
  • 2023/01 (1)
  • 2022/12 (2)
  • 2022/08 (2)

Blog is powered by Tistory / Designed by Tistory

티스토리툴바