Report
Server
IP - 143.198.212.242
Domain: sigrop.site Server: nginx
2.1. Cấu hình 1 website sử dụng 1 tên miền – 1 IP – 1 port
services:
web:
build: .
container_name: web_single_port
expose:
- "80"
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: nginx_sigrop
ports:
- "80:80"
volumes:
- ./nginx/conf.d/2_1.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- web
restart: unless-stoppedserver {
listen 80;
server_name sigrop.site www.sigrop.site;
location / {
proxy_pass http://web:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
} 
2.2. Cấu hình 1 website sử dụng 1 tên miền – 1 IP – nhiều port khác nhau



2.3. Cấu hình nhiều website sử dụng 1 tên miền – 1 IP – nhiều port khác nhau


2.4. Cấu hình nhiều website sử dụng nhiều tên miền – 1 IP – 1 port
⇒ Suggest: Sub-Domain (Thay cho nhiều Domain)


2.5. Cấu hình nhiều website sử dụng 1 tên miền – 1 IP – 1 port


Last updated
Was this helpful?

