coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: foggy75 on February 13, 2005, 02:52:43 PM

Title: RE:- Integration phpbb 2.0.11 Login Issues
Post by: foggy75 on February 13, 2005, 02:52:43 PM
http://62.30.33.103

http://62.30.33.103/gallery

User/Pass test:test

when i get redirected it goes to my internal ip address 192.168.1.6 instead of the external wan  ip

Bridge

// database configuration
define('PHPBB_DB_NAME', 'xxxxxx'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxx'); // The username to use to connect to the da
tabase
define('PHPBB_DB_PASSWORD', 'xxxx'); // The password to use to connect to t
he database

init.inc.php

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/');

cpg_redir

<?php
if (!$_SERVER['HTTP_HOST']) {
 $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
 $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Many Thanks






Title: Re: RE:- Integration phpbb 2.0.11 Login Issues
Post by: Nibbler on February 13, 2005, 07:05:12 PM
It's because http://62.30.33.103/gallery is resolving to 192.168.1.6 I cannot see the gallery atall.
Title: Re: RE:- Integration phpbb 2.0.11 Login Issues
Post by: Joachim Müller on February 14, 2005, 08:05:13 AM
So you're running your own webserver, huh? You shouldn't.

:-X Joachim