1
binary1230
Re: Xoops and proxy: summary of modifications needed
  • 2004/8/4 3:47

  • binary1230

  • Just popping in

  • Posts: 4

  • Since: 2004/8/3 2


FYI, for later readers, this still happens in XOOPS 2.0.7, but the changes only need to be made in cp_header.php and (maybe?) checklogin.php.



2
binary1230
Re: Apache virtualhost/proxy weirdness
  • 2004/8/4 3:02

  • binary1230

  • Just popping in

  • Posts: 4

  • Since: 2004/8/3 2


never mind, I actually was able to change around the proxy config after all, so I set up something a bit more sane.



3
binary1230
Apache virtualhost/proxy weirdness
  • 2004/8/3 20:43

  • binary1230

  • Just popping in

  • Posts: 4

  • Since: 2004/8/3 2


OK, got kind of a weird thing here.. maybe a bug even.

Got XOOPS 2.0.7 today, installed it from tarballs from this site fine on a debian stable box, everything went ok and the site comes up fine. Everything appears to be working, with the exception of the redirect after a login.

There are 2 boxes involved (I didn't have any real control over doing it in this obscure fashion..) (names changed to protect the innocent)

One box is a webserver w/80 facing the net, it has a bunch of virtualhosts off it. Then on that box there is a ProxyPass directive in the httpd.conf which proxies requests from the virtualhost domains back behind the firewall to various boxes.

On one of those firewalled boxes is where my XOOPs install is. However, that install is not directly in the document root, instead its in /var/www/xoops/html

So my config is like this:

xoops.foo12.com points to 1.2.3.4

External box:

<VirtualHost 1.2.3.4:80>
ServerName xoops.foo12.com

# forward stuff fromhttp://xoops.foo12.com/
# tohttp://internalbox/xoops/html/
ProxyPass /http://internalbox/xoops/html/
ProxyPassReverse /http://internalbox/xoops/html/
</VirtualHost>



Internal box (with XOOPS install):
the actual install is in /var/www/xoops/html

# from mainfile.php
define('XOOPS_ROOT_PATH', '/var/www/xoops/html');
define('XOOPS_URL', 'http://xoops.foo12.com');

apache version: Apache/1.3.26
php version: 4.1.2
linux: debian stable

---

OK now when i login it tries to redirect me not to
http://xoops.foo12.com but tohttp://xoops.foo12.com/xoops/html

in the HTML source from my web browser I see this in the login form code:

<input type="hidden" name="xoops_redirect" value="/xoops/html/index.php" />


thanks, and apologies if its something stupid i did.




TopTop



Login

Who's Online

145 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits