1
raphinou
Why I can't use xoops2
  • 2003/11/2 14:40

  • raphinou

  • Just popping in

  • Posts: 2

  • Since: 2003/3/28


I'm putting a website behind an Apache server acting as a proxy.

so, eg, www.publicsite.com/xoops/ accesses 192.168.0.1/

I encountered two problems until now:
To log in, I had to change the checklogin.php script:
80c80
> $url .= isset($parsed['port']) ?$parsed['host'].':'.$parsed['port'].$parsed[path].trim($HTTP_POST_VARS['xoops_redirect']): $parsed['host'].$parsed[path].trim($HTTP_POST_VARS['xoops_redirect']);
---
< $url .= isset($parsed['port']) ?$parsed['host'].':'.$parsed['port'].trim($HTTP_POST_VARS['xoops_redirect']): $parsed['host'].trim($HTTP_POST_VARS['xoops_redirect']);


The path of the url was lost in the process.

Second problem; I can't administrate the site. It tells me the module doesn't exist, because it works with the requested URL, and doesn't look for the module directory based on the directory where XOOPS was installed.
It's in common.php around line 235.

I could put a xoops1 installation in a structure like I describe.

Bye.

Raph


2
onokazu
Re: Why I can't use xoops2
  • 2003/11/2 18:37

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


What happens if you change the following line around line 220-230 in common.php:

$xoopsRequestUri = @xoops_getenv('REQUEST_URI');

to

$xoopsRequestUri = @xoops_getenv('SCRIPT_NAME');

3
raphinou
Re: Why I can't use xoops2
  • 2003/11/3 11:22

  • raphinou

  • Just popping in

  • Posts: 2

  • Since: 2003/3/28


Doesn't work either. I'd think the problem comes from the line

$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'
.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));

Replacing it with

$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'.preg_replace("/http:\/\/(.*)\/.*/","\$1",XOOPS_URL).$xoopsRequestUri));

gives me the right hostname, but it doens't work. I'm abandoning it, I don't have the time to look further at it.... But it worked in xoops1.

I'll try XOOPS again later.

thanks

RAph



Login

Who's Online

131 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 131


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