From: Benjamin T. <bt...@cc...> - 2004-05-03 11:13:28
|
Hello, I found out, that phpwiki builds up the urls from a static "http" and from "ServerName" given in apache-httpd.conf, which is in fact given as our external dns-name. So if I change this to the internal name or add the internal name to phpwikis SERVER_NAME-section in index.php, access from intranet is working fine. This is why HTTP_HOST does not solve the problem, because the hostname is always the internal name of the machine and http is used instead of https. Using "define SERVER_NAME as $_SERVER['HTTP_HOST']" just shows up an empty browser. Why does phpwiki not add a relative path to the request, coming from the browser? Kind Regards, Benjamin Joby Walker wrote: > In index.php define SERVER_NAME as $_SERVER['HTTP_HOST']. This will > grab the hostname used by the browser. > > Joby Walker > C&C Computer Operations Software Support Group > > > > Benjamin Thelen wrote: > >> Hi, >> >> I have a debian/squid server which forwards http request to another >> debian-machine on which apache 1.3.26, phpwiki-1.3.7 and some other >> php-based applications (phprojekt/phpMyAdmin/squirrelmail) are running. >> >> Using phpwiki from the intranet everything works fine. If I access the >> main-page from outside the intranet, for example from home, the first >> page isn't displayed properly and every link and the pics on this page >> refers to the internal name of the server, instead of the public >> domain name. >> >> All the other php-based applications work fine. >> >> Example: >> >> Intranet >> http://host/phpwiki/index.php >> >> Internt: >> http://www.dns-name.de/phpwiki/index.php >> >> >> So, it seems that phpwiki asks its host for the hostname and prepends >> the hostname to the path, where phpwiki is located, instead of using >> relative paths. >> >> >> Sorry, it's a little bit difficult to explain, but I hope you got the >> problem somehow. >> >> >> Is there a missconfiguration of phpwiki? I tried define('SERVER_NAME' >> and define('SCRIPT_NAME' and the configurator.php, but all that did >> not solve the problem! >> >> >> Thanks, >> Benjamin >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: Oracle 10g >> Get certified on the hottest thing ever to hit the market... Oracle >> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. >> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >> _______________________________________________ >> Phpwiki-talk mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > > |