Web Server Software

김병현·2022년 2월 9일
0

Web Server

목록 보기
1/6

IIS (Internet Infomation Services - Window)


필수 설치

인터넷 정보 서비스, 인터넷 정보 서비스 호스팅 가능 웹 코어, NET Framework 기능 설치 필수
프로그램 및 기능 → window 기능 켜기/끄기

inetmgr 실행

실행할 웹사이트 → 고급설정 → 실제 경로 설정

확인 후 시작

수정이 있을 경우에는 정지 후 재시작!

  • 기본 문서를 통하여 클라이언트 요청에 반환할 순서를 지정 가능

Apache tomcat

root : C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\server.xml

 <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
               
# 포트 설정
# Windows 10에서 기본적으로 "World Wide Web Publishing Service(W3SVC)"가 80 PORT를 사용 
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
            
<Context path = "/" docBase="C:outline_source" reloadable="true" />

# docBase = "실제 경로 설정"
# path = "/" : /PORT → 80 PORT의 경우 생략이 가능하지만 다른 PORT의 경우 작성할 것

root : C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\web.xml

<welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    
# 클라이언트 요청에 반환할 순서 지정. IIS의 기본 문서와 동일

root : C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\Tomcat9w.exe

  • Tomcat9w.exe 실행 → Start/Stop

NginX

root : C:\nginx-1.20.2\conf\nginx.conf

 server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   C:outline_source;
            index  index.html index.htm;
        }
        
# listen : PORT 설정
# locaiton / root : 실제 경로 설정
# location : 반환 순서 설정

cmd

cd C:\nginx-1.20.2		# nginx directory 이동

C:\nginx-1.20.2>nginx		# 서버 실행
C:\nginx-1.20.2>nginx -s stop		# 서버 정지	

C:\nginx-1.20.2>tasklist /fi "imagename eq nginx.exe"		# 실행 현황 및 세션, 메모리 확인

Mongoose

  1. root : C:\webserver\mongoose-free-6.5 실행
  2. 작업 표시줄의 Mongoose 아이콘 → Advanced Settings
  3. 실제 경로, 포트 등 설정 후 Save settings

profile
Without haste, but without rest.

0개의 댓글