AD Tech

nginx 하위 서비스 연동 및 qrcode php 연동

Kyle79 2019. 10. 15. 12:24

 

* 하위 서비스(서버) 연동시, Host 설정하여 연동

 

* 두 서버의 사양이 달라서 처리양이 다르면 weight를 통해서 설정

 

https://wani.kr/posts/2016/07/01/nginx-proxy-settings/

 

Nginx 하위 경로를 다른 서버로 보내기 - 완두블로그

서비스를 운영하다가 wani.kr라는 도메인은 A라는 서버에 물려있고, wani.kr/other은 B라는 서버에 물리게 할 일이 있었습니다. 그럴때는 nginx proxy를 사용하면 됩니다. 다음 설정은 wani.kr라는 서버에서 wani.kr/other로 요청할 경우 111.11.11.11과 111.11.11.12로 나누어서 요청을 보낼때의 설정입니다. server { listen 80; server_name wani.kr; # 여기에는 기존 wani.

wani.kr

 

 

 

 

https://www.lesstif.com/pages/viewpage.action?pageId=24444977

 

nginx php 연동

정리 필요

www.lesstif.com

 

 

config.php 에서
QRCODE_TITLE 과 AUTH_SUCCEED_REDIRECT_URL 를 $_SERVER["HTTP_HOST"] 바꾸어준다

# login/login.php 에서
# SSL 인 경우는 그냥 사용해도 무방
session_set_cookie_params (0, "/", $domain, true, true);
# SSL 이 아닌 경우
session_set_cookie_params (0, "/", $domain, false, true);

# php 파일의 권한은 apache 로
find * -print0 | xargs -0 chmod 755 ;
find otp -print0 | xargs -0 chown -h apache:apache ;

 

https://github.com/Arno0x/TwoFactorAuth

 

Arno0x/TwoFactorAuth

Two Factor Authentication web portal written in PHP - Arno0x/TwoFactorAuth

github.com

 

 

'AD Tech' 카테고리의 다른 글

인바운드 마켓팅와 아웃바운드 마켓팅  (0) 2019.11.19
오가닉과 바이럴 마켓팅  (0) 2019.11.19
Health Check Opensource  (0) 2019.10.14
Ansible  (0) 2019.10.11
MAU, DAU, MCU, ACU  (0) 2019.08.23