From: Joby W. <joby@u.washington.edu> - 2002-08-16 18:12:17
|
Line 162 of phpwiki/lib/config.php in 1.3.3 (as I have it) sets the definition of SERVER_URL if it is not set already. I would set up a if/else statement in phpwiki/index.php to define SERVER_URL based off of the IP address or hostname of the client: if ( <regexp to determine if internal> ) { define('SERVER_URL', 'int.x.com'); } else { define('SERVER_URL', 'x.com'); } jbw Matt Pieklik wrote: > I have run into a situation where I have one webserver serving a private > network and the internet and serving up the same web pages. The problem > is, the private network has a different domain name than the public > side. Lets say the public net is x.com and the private is int.x.com. > I have a link for a file on the webserver, > [OP AMPS for Everyone Book | > https:/internal/reference/guides/electronics/opamp/OpAmpsForEveryone.pdf] > I think this is a terrible way to do things, /internal/references... is > the path to the file, not the machine name...I had use https: to force > the SSL protocol, otherwise it would try http, which is being blocked. > The problem is with this kludge, it only seems to work with IE > browsers. Mozilla interprets "/internal" as a machine name and tries to > find a machine by that name. > I can't use the the machine name in the URL because this page is being > accessed by both internal and external hosts, thus the machine has two > different domain names. > Anyone have any suggestions on the proper or better way of doing this? > TIA, > Matt > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |