Ah, yes ...another login/logout redirect problem Ah, yes ...another login/logout redirect problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Ah, yes ...another login/logout redirect problem

Started by gvsboy, September 13, 2005, 06:35:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gvsboy

Hello Coppermine,

I have a problem similar to other login/logout problems other users have, but mine seems a bit different.  I'm running clean Coppermine and phpBB installs on my home test server, with both working correctly individually.  When I bridge the two, the integration works flawlessly when I test it while browsing on my server (I can login and logout from both Coppermine and phpBB, and be redirected properly).  However, when I try it from any other computer in the world, I get a 404 when I login or logout from both Coppermine and phpBB.  Despite the error, I can hit back and refresh to find myself properly logged in.  There seems to be something wrong with my redirection script, but I can't seem to figure this one out.  Any ideas?

Vital Stats:
Copperime Version: 1.3.4
phpBB Version: 2.0.17

Link to my phpBB: http://68.42.122.78/arrowwood/phpBB2/index.php
Link to my Coppermine: http://68.42.122.78/arrowwood/coppermine/index.php
Login: testuser
Pass: test1

phpbb.inc.php file:
// database configuration
define('PHPBB_DB_NAME', '***'); // The name of the database used by the board
define('PHPBB_BD_HOST', '***'); // The name of the database server
define('PHPBB_DB_USERNAME', '***'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '***'); // The password to use to connect to the database

// 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', '/arrowwood/phpBB2/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);


cpg_redir.php file:
<?php
if (!$_SERVER['HTTP_HOST'])
{
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];

else 
{
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/arrowwood/coppermine';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


Like I said above, the configuration works perfectly when I browse on my server, but not anywhere else.  Any input is appreciated!

Thank you for your time,


-GVSBoy

Nibbler

Looks like your Domain Name is set to localhost in phpbb's configuration. That should be set to 68.42.122.78

gvsboy

Awesome, that did the trick.  Thank you so much for the quick reply.  I appreciate your help!  :)