1
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
http://www.domain.comSo 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
http://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 ?