nginx Server Block(Virtual Host) - Windows > 에필로그

본문 바로가기

nginx Server Block(Virtual Host) - Windows

페이지 정보

작성자 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 에필로그 댓글 0건 조회 1,604회 작성일 22-06-28 16:03

본문

한 서버에서 80번 포트로 사이트를 여러개 운영한다.

서버에서 nginx 설치 폴더와 사이트의 웹루트 폴더를 다음과 같다고 가정한다.

1IUIbnTzuetG3AXiIuIW1GF7jGFt5agXY=w1467-h945-iv1


14bW1X05xaYb0Wt2Wr2mcjjebF7S-dnHr=w1467-h945-iv1


-. C:\nginx-1.22.0\conf\nginx.conf 파일

worker_processes  1;

events {

    worker_connections  1024;

}

http {

    include    mime.types;

    default_type  application/octet-stream;

    include "C:/nginx-1.22.0/conf/sites-enabled/*.conf";

}


-. C:\nginx-1.22.0\conf\sites-enabled\example.com.conf 파일 *example.com 사이트

server {

        listen       80;

        server_name  example.com;

        location / {

            root   html;

            index  index.html index.htm;

        }

        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html;

        }

}


-. C:\nginx-1.22.0\conf\sites-enabled\example2.com.conf 파일 *example2.com 사이트

server {

        listen       80;

        server_name  example2.com;

        location / {

            root   html2;

            index  index.html index.htm;

        }

        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html2;

        }

}


-. C:\nginx-1.22.0\conf\sites-enabled\example3.com.conf 파일 *example3.com 사이트

server {

        listen       80;

        server_name  example3.com;

        location / {

            root   html3;

            index  index.html index.htm;

        }

        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html3;

        }

}  


댓글목록

등록된 댓글이 없습니다.

에필로그 340건/6페이지
에필로그 목록
번호 제목 글쓴이 조회 날짜
265 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1585 07-19
264 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1559 07-18
263 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1584 07-18
262 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1543 07-14
261 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1910 07-14
260 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1546 07-02
259 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1592 06-30
258 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1538 06-30
257 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1538 06-30
256 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1552 06-30
255 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6197 06-30
254 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1700 06-28
253 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1582 06-28
열람중 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1605 06-28
251 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1459 06-27
게시물 검색
[문의] 전화 : 0707-443-0499 메일 : t8@t8.co.kr [분야] Linux, Unix, Windows DNS, 웹, WAS, 역방향프록시, 앱 SQL, 메일, 스트리밍, CDN SMB/CIFS, FTPs, NFS, AFP IKEv2, OpenVPN, WireGuard 대범위 DHCP, WiFi 종속포털, AAA DDoS 우회/분산, 랜섬웨어 대비 장애/재난/해킹시스템 복구 서비스/P2V 마이그레이션 XSS/웹쉘/인젝션/백도어 제거 서버 업그레이드/교체/이전 주문/맞춤/복합/간이서버 제작 특별/희귀/생소한 시스템 상담/구현 문제해결 외

Copyright © T8. All rights reserved.