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
댓글 14개
18년 전
보안로그인
swinter
17년 전
감사합니다..
16년 전
이것 때문에 몇일간 끙끙 댓는데 해결 됐습니다.
감사합니다.
감사합니다.
16년 전
감사합니다 ^^
16년 전
힘들거 같네용
ㅜ.ㅜ
ㅜ.ㅜ
kdjlka
16년 전
이거 하면 CRSF방지 액박 나타남...
ㅜㅜ
ㅜㅜ
16년 전
좋은 정보 감사해용^^*
16년 전
보안인증 ^o^
raineye
15년 전
감사합니다^^ 전 아주 잘 되네요^^
스페셜폭스
15년 전
보안인증
15년 전
$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
lovelyfillow
15년 전
gg
13년 전
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']?>'>
13년 전
$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://주소들어가나요?
포트번호는 안넣어도 되나요?
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3309 | 3년 전 | 1803 | ||
| 3308 | 11년 전 | 2092 | ||
| 3307 |
uPAmJ903
|
6년 전 | 4750 | |
| 3306 |
바른사나이
|
6년 전 | 3274 | |
| 3305 | 6년 전 | 12306 | ||
| 3304 | 7년 전 | 3703 | ||
| 3303 | 7년 전 | 3742 | ||
| 3302 |
지리산초보
|
7년 전 | 13597 | |
| 3301 |
sozet
|
8년 전 | 4903 | |
| 3300 |
sozet
|
8년 전 | 5972 | |
| 3299 |
sozet
|
8년 전 | 10862 | |
| 3298 | 8년 전 | 4015 | ||
| 3297 |
또치하우스
|
8년 전 | 4442 | |
| 3296 | 8년 전 | 11971 | ||
| 3295 |
또치하우스
|
8년 전 | 14985 | |
| 3294 | 8년 전 | 6025 | ||
| 3293 | 8년 전 | 5588 | ||
| 3292 |
|
9년 전 | 5318 | |
| 3291 | 9년 전 | 13678 | ||
| 3290 | 9년 전 | 5052 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기