XML Sitemaps Generator

Author Topic: TIP: When behind a reverse proxy or gateway  (Read 27713 times)


  • Registered Customer
  • Approved member
  • *
  • Posts: 3
TIP: When behind a reverse proxy or gateway
« on: June 17, 2008, 03:53:48 PM »
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

[external links are visible to admins only]

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

  • Administrator
  • Hero Member
  • *****
  • Posts: 10916
Re: TIP: When behind a reverse proxy or gateway
« Reply #1 on: June 17, 2008, 10:05:09 PM »
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.
Oleg Ignatiuk
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.


SMF 2.0.14 | SMF © 2017, Simple Machines