1
jpr001
multiple URL's to site
  • 2004/6/19 20:42

  • jpr001

  • Just popping in

  • Posts: 1

  • Since: 2004/6/19


I have installed XOOPS on my own webserver.

But because of all the NAT-stuff etc. I have to use the
proxy of my provider to access my domain, let's say
www.domain.com

So I made an entry in my hosts-file local.domain.com
that points to my webserver.

Because apache listens to *.domain.com this works great,
and I don't have to use the proxyserver (which is slow).

With PostNuke this worked great, but with XOOPS not,
it redirected me to www.domain.com (the way I installed
it).

After going through the mainfile.php, I saw that my
URL is "hard coded" here.

So I changed :
define('XOOPS_URL', 'http://www.domain.com');
to
define('XOOPS_URL', 'http://'.$_SERVER["SERVER_NAME"]);

Is works great now, but is there a reason why I should not
do this ?? And why isn't this default ?

2
tl
Re: multiple URL's to site
  • 2004/6/19 20:58

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:

So I changed :
define('XOOPS_URL', 'http://www.domain.com');
to
define('XOOPS_URL', 'http://'.$_SERVER["SERVER_NAME"]);

Is works great now, but is there a reason why I should not
do this ?? And why isn't this default ?


May be for security reasons? May the dev clarify it?

It is also working on hosted servers. One thing I don't like to use it is that it "defaults" URL to www.domain.com while I would ranther keep domain.com as URL.

3
TurkClub
Re: multiple URL's to site
  • 2004/6/21 2:33

  • TurkClub

  • Just popping in

  • Posts: 44

  • Since: 2003/10/28


my questions is little bit out off topic..
i wanna share my database with two domains..

is it possible to do that on xoops?

Login

Who's Online

174 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits