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 ?




TopTop



Login

Who's Online

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


Members: 0


Guests: 138


more...

Donat-O-Meter

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

Latest GitHub Commits