SSL 보안인증 로그인,회원가입 적용하기 (2007/11/16 수정) 정보
SSL 보안인증 로그인,회원가입 적용하기 (2007/11/16 수정)
관련링크
본문
            
            
                        조건1 : 로그인, 회원가입때만 SSL사용
조건2 : 인증주소 ==> https://happyjung.com:1000
(주의: https://www.happyjung.com:1000 일때와 https://happyjung.com:1000 은 다른 인증서임)
조건3: 그누보드 설치 http://happyjung.com/gnuboard
1. 환경설정
그누보드/ config.php
$g4['url'] = ""; --->(수정) $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
2. 외부로그인
그누보드 / skin / outlogin / 스킨 / outlogin.skin.1.php 에서
원본: f.action = "<?=$g4[bbs_path]?>/login_check.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";
로 변경합니다.
3. 로그인
그누보드 / skin / member / 스킨 / login.skin.php 에서
17라인
원본: <input type="hidden" name="url" value='<?=$url?>'>
수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
102라인
원본: f.action = "./login_check.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";
4. 회원가입 (1)
그누보드 / skin / member / 스킨 / register_form.skin.php
원본: <input type="hidden" name="url" value="<?=$urlencode?>" />h
수정: <input type="hidden" name="url" value="http://happyjung.com<?=$_SERVER['REQUEST_URI']?>" />
원본: f.action = "./register_form_update.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/register_form_update.php";
5. 회원가입 (2)
그누보드 / bbs / register_form_update.php
원본: goto_url("./register_result.php");
수정: goto_url("http://happyjung.com/gnuboard/bbs/register_result.php");
참조사이트
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=64682
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=37061
                    
                
                
                조건2 : 인증주소 ==> https://happyjung.com:1000
(주의: https://www.happyjung.com:1000 일때와 https://happyjung.com:1000 은 다른 인증서임)
조건3: 그누보드 설치 http://happyjung.com/gnuboard
1. 환경설정
그누보드/ config.php
$g4['url'] = ""; --->(수정) $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
2. 외부로그인
그누보드 / skin / outlogin / 스킨 / outlogin.skin.1.php 에서
원본: f.action = "<?=$g4[bbs_path]?>/login_check.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";
로 변경합니다.
3. 로그인
그누보드 / skin / member / 스킨 / login.skin.php 에서
17라인
원본: <input type="hidden" name="url" value='<?=$url?>'>
수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
102라인
원본: f.action = "./login_check.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";
4. 회원가입 (1)
그누보드 / skin / member / 스킨 / register_form.skin.php
원본: <input type="hidden" name="url" value="<?=$urlencode?>" />h
수정: <input type="hidden" name="url" value="http://happyjung.com<?=$_SERVER['REQUEST_URI']?>" />
원본: f.action = "./register_form_update.php";
수정: f.action = "https://happyjung.com:1000/gnuboard/bbs/register_form_update.php";
5. 회원가입 (2)
그누보드 / bbs / register_form_update.php
원본: goto_url("./register_result.php");
수정: goto_url("http://happyjung.com/gnuboard/bbs/register_result.php");
참조사이트
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=64682
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=37061
                        
                추천
                
4
                
    4
댓글 14개
                
                    보안로그인                
                
                
            
                    
                
                    감사합니다..                
                
                
            
                    
                
                    이것 때문에 몇일간 끙끙 댓는데 해결 됐습니다.
감사합니다.
                    감사합니다.

                
                    감사합니다 ^^                
                
                
            
                    
                
                    힘들거 같네용
ㅜ.ㅜ
                    ㅜ.ㅜ

                
                    이거 하면 CRSF방지 액박 나타남...
ㅜㅜ
                    ㅜㅜ
                
                    좋은 정보 감사해용^^*                
                
                
            
                    
                
                    보안인증 ^o^                
                
                
            
                    
                
                    감사합니다^^ 전 아주 잘 되네요^^                
                
                
            
                    
                
                    보안인증                
                
                
            
                    
                
                    $g4['url'] = "";           --->(수정)   $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
요기에서 아래꺼에 https 해야 하는거 아닌가요?
http://happyjung.com/gnuboard -> https://happyjung.com/gnuboard
                    $g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
요기에서 아래꺼에 https 해야 하는거 아닌가요?
http://happyjung.com/gnuboard -> https://happyjung.com/gnuboard
                
                    gg                
                
                
            
                    
                
                    SSL적용후 게시물 클릭해서 로그인할 때 경로 에러뜨면 본 게시물이 해결방안이네요. 추천합니다.
수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
                    수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
                
                    $g4['url'] = "";           --->(수정)   $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
아래도 http://주소들어가나요?
포트번호는 안넣어도 되나요?
                    $g4['https_url'] = ""; --->(수정) $g4['https_url'] = "http://happyjung.com/gnuboard";
아래도 http://주소들어가나요?
포트번호는 안넣어도 되나요?
