PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   returning results of internal & external sites (http://www.phpdig.net/forum/showthread.php?t=837)

tryangle 04-17-2004 06:17 AM

returning results of internal & external sites
 
Hi,

How would I go about spidering a site that is on the server, since I don't access it as www. but everyone else does. Is there a way to spider the site so that the pages and links are returned as external to the server so they won't be dead links to everyone else.

TIA for your input on this,
Randy

vinyl-junkie 04-17-2004 09:24 AM

If I understand what you're asking, you need to change the following option in config.php to true:
Code:

define('PHPDIG_IN_DOMAIN',false);
The comment about this statement in the documentation says:
Quote:

//allows phpdig jump hosts in the same
//domain. If the host is "www.mydomain.tld",
//domain is "mydomain.tld"

tryangle 04-17-2004 06:04 PM

Thanks for your reply...
 
Hi vinyl-junkie,

I read those notes in config.php but in terms of DNS, domain.tld is an A record... which is assigned an external IP address and a C name, like (www) is sortta mapped to the A record. So, it's basically mapped to the same (external) IP address. Anyway, the server can't be accessed from the lan via the external IP, it would have to have a different A record with an internal IP and C name mapped to that A record. If that makes sense...

I'm thinking I might be able to just run the spider on the site then update the database to reflect the www.

Any other ideas?


All times are GMT -8. The time now is 09:43 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.