brluzf / googlesitemapgenerator

Automatically exported from code.google.com/p/googlesitemapgenerator
Apache License 2.0
0 stars 0 forks source link

Support multi domains in one virtual host #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One virtual host has a web application with:

www.domain.com (english), www.domain.fr (french) and www.domain.de(de)
(Alias)

Sitemap for www.domain.com

www.domain.com/
www.domain.com/search

Sitemap for www.domain.fr

www.domain.fr/
www.domain.fr/recherche

Sitemap for www.domain.de

www.domain.de/
www.domain.de/suche

The sitemap generators generates:

 www.domain.com/
 www.domain.com/suche
 www.domain.com/search
 www.domain.com/research

But not all of those URLs exists at the application makes a check
and also compares the domains with the URL to make sure that no duplicate
content exists.

Country specific domains are a must and can not be replaced by a single
domain, due to company policies and other issues. Different responsibilites
for different domains but hosted on the same server and due to many
subdomains it is not advisibale to not use Alias domains inside of Apache.

Original issue reported on code.google.com by xsuperov...@gmail.com on 24 Feb 2009 at 9:13

GoogleCodeExporter commented 8 years ago
Issue 19 has been merged into this issue.

Original comment by ma...@google.com on 25 Feb 2009 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by ma...@google.com on 25 Feb 2009 at 5:19

GoogleCodeExporter commented 8 years ago

Original comment by ma...@google.com on 25 Feb 2009 at 5:20

GoogleCodeExporter commented 8 years ago
Issue 15 has been merged into this issue.

Original comment by ma...@google.com on 25 Feb 2009 at 5:21

GoogleCodeExporter commented 8 years ago
Could you please increase the priority from low to medium or high?
I think this is a really general and basic requirement.

A sitemap generator needs to know what domain/subdomain an URL belongs to. Most 
big 
websites use subdomains or multiple-domain names.

Original comment by xsuperov...@gmail.com on 9 Mar 2009 at 10:22

GoogleCodeExporter commented 8 years ago
Any updates on this? It is almost the 1st anniversary of this defect!

Thanks!

Original comment by mediathe...@daserste.de on 21 Jan 2010 at 2:48

GoogleCodeExporter commented 8 years ago
Similar problem here.

Having the following setup:

 <VirtualHost *:80>
    ServerName www.example.com 
    DocumentRoot /path/to/docs
    # ServerName + DocumentRoot only added to help GSG
    Include /path/to/setting.conf
 </VirtualHost>

 <VirtualHost _default_:443>
    ServerName www.example.com 
    DocumentRoot /path/to/docs
    # ServerName + DocumentRoot only added to help GSG
    Include /path/to/setting.conf
    SSLEngine on
    # SSL...
 </VirtualHost>

GSG shows www.example.com 4 times and does not write any www.example.com-Urls 
into
sitemap.

Thanks for your work!

PS Happy Birthday Issue!

Original comment by ronald.s...@googlemail.com on 24 Feb 2010 at 9:22

GoogleCodeExporter commented 8 years ago
Yes, still waiting :-(

Original comment by xsuperov...@gmail.com on 3 Aug 2010 at 1:19

GoogleCodeExporter commented 8 years ago
Any updates? I am still waiting.... :-( :-( :-(

Original comment by xsuperov...@gmail.com on 19 Feb 2012 at 3:59

GoogleCodeExporter commented 8 years ago
Hi all,
I have get configure more than one domain in my console admin.

Add the domains in the virtualhost config:
  <VirtualHost *:80>
        ServerName edgar3.local
        DocumentRoot /var/www/edgar3/
        DirectoryIndex index.html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog /var/log/apache2/edgar3_access_log common
  </VirtualHost>
  <VirtualHost *:80>
        ServerName edgar2.local
        DocumentRoot /var/www/edgar2/
        DirectoryIndex index.php
        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog /var/log/apache2/retexu_access_log common
  </VirtualHost>
  <VirtualHost *:80>
        ServerName edgar.local
        DocumentRoot /var/www/edgar/
        DirectoryIndex edgar.php
        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        #CustomLog ${APACHE_LOG_DIR}/access_log common
        CustomLog /var/log/apache2/edgar_access_log common
  </VirtualHost>
If I use the var "${APACHE_LOG_DIR}" the site doesn't appear in the admin 
console, but if I use an absolute path, the site appears.

After to change the path of logs restart the google-sitemap-daemon use the 
following command "google-sitemap-generator-ctl service restart".

I hope that this solution had been usefully

Original comment by edgar.sa...@webfg.com on 13 Nov 2013 at 12:22

GoogleCodeExporter commented 8 years ago
looks good but it didn't work for me :(

Original comment by arnaudma...@gmail.com on 8 Dec 2013 at 3:39