Server
-
apache/socket.io 설정Server/nginX,Apache 2022. 9. 20. 11:15
xmapp 기준으로 작성 httpd.conf 설정 mod_proxy_wstunnel.so 모듈 활성화 -- httpd.conf LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so mac 일경우 mod_proxy.so 모듈 추가 활성화 LoadModule proxy_module lib/httpd/modules/mod_proxy.so httpd-vhosts.conf 설정 RewriteRule 설정 ... RewriteRule /socket.io/(.*) ws://localhost:10002/socket.io/$1 [P] RewriteRule ^/(img|js|css|fonts|sound)($|/.*) /$1$2 [PT] RewriteRule ^/o..
-
nginx/socket.io 설정Server/nginX,Apache 2022. 9. 2. 10:11
설정 파일 ... #socket.io.js파일 전용. location /socket.io/ { proxy_pass wss://localhost:10002/socket.io/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_buffers 8 32k; proxy_buffer_size 64k; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_hos..