• Welcome to Sitemap Generator Forum.
 

TIP: When behind a reverse proxy or gateway

Started by Dasher, June 17, 2008, 03:53:48 PM

Previous topic - Next topic

Dasher

If you're behind a gateway, reverse proxy or some kind of load-balancer you'll have problems using the sitemap generator as your domain name will loop back on itself.  You don't want to use the local machine name as it'll mess up the generation of the sitemap.

You'll need to add an entry to your hosts file for your domain name - pointing to 127.0.0.1.

ie
hosts
www.domain.name 127.0.0.1

You can then run the sitemap generator from the prompt without problems.

Keep in mind if you run the script from the prompt - you'll may be using a different php.ini from that being by the website (often the case on linux).

XML-Sitemaps Support

Thank you for feedback!

Another tip: you can also check phpinfo() on your server and find IP specified as _SERVER['SERVER_ADDR'] and enter it in sitemap generator settings.