I have an update to the Gallery2 integration that allows for Gallery to be installed at a different URL than phpGedView.
I have tested this with Gallery 2.1.2 and the 4.1B2 code.
In modules/gallery2.php, add a new variable g2uri that points to the full HTTP address of the Gallery installation.
In modules/gallery2/pgv.php, modify line 67 to use the new variable in modules/gallery2.php.
This modification works for both Gallery installed in a different location and Gallery installed in the modules/gallery2 path.