클럽 설치중 그누보드하고 클럽 폴터를 다르게 정할시 어떻게 상대경로를 설정 하는가요 ? 정보
클럽 설치중 그누보드하고 클럽 폴터를 다르게 정할시 어떻게 상대경로를 설정 하는가요 ?본문
<?
$host = getenv("HTTP_HOST");
$path = "./gnuboard4";
$title = "그누보드";
if (eregi("club", $host)) {
$path = "./club";
$title = "클럽";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title><?=$title?></title>
</head>
<frameset rows="*,1" frameborder="NO" border="0" framespacing="0">
<frame src="<?=$path?>" name="mainFrame">
<frame src="about:blank" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>
</body></noframes>
</html>
우선 꽁수로 제가 이용하는 방법을 알려드리겠습니다.
메인 도메인과 로컬 도메인을 모두 홈페이지 웹루트에 접속하도록 아파치에서 설정합니다.
그리고 위의 소스같이 웹루트의 index.html을 만들어 주고..
그누보드는 gnuboard4 디렉토리에 설치
클럽은 club 디렉토리에 설치하면
club.xxx.com으로 호출하면 클럽으로..
xxx.xxx.com으로 호출하면 그누보드로 접속됩니다...
참고하십시오..
$host = getenv("HTTP_HOST");
$path = "./gnuboard4";
$title = "그누보드";
if (eregi("club", $host)) {
$path = "./club";
$title = "클럽";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title><?=$title?></title>
</head>
<frameset rows="*,1" frameborder="NO" border="0" framespacing="0">
<frame src="<?=$path?>" name="mainFrame">
<frame src="about:blank" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>
</body></noframes>
</html>
우선 꽁수로 제가 이용하는 방법을 알려드리겠습니다.
메인 도메인과 로컬 도메인을 모두 홈페이지 웹루트에 접속하도록 아파치에서 설정합니다.
그리고 위의 소스같이 웹루트의 index.html을 만들어 주고..
그누보드는 gnuboard4 디렉토리에 설치
클럽은 club 디렉토리에 설치하면
club.xxx.com으로 호출하면 클럽으로..
xxx.xxx.com으로 호출하면 그누보드로 접속됩니다...
참고하십시오..
추천
0
0
댓글 전체
감사함니다 .... 나라오름님 ...