[Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Oct 19 03:51:54 EDT 2011


Hi Giovanni

>It should work too, am I wrong?

Yes, the MAP parameter should be considered too.

Regards,
Marco

Am Mittwoch, 19. Oktober 2011, 09.30:02 schrieb G. Allegri:
> Thanks Marco,
> I supposed it watching the source code. But what about the need to reload
> apache if I send a different MAP request (i.e. a differnet configuration
> file)? It should work too, am I wrong?
> 
> giovanni
> 
> 2011/10/19 Marco Hugentobler <marco.hugentobler at sourcepole.ch>
> 
> > Hi Giovanni
> > 
> > QGIS server uses the QFileSystemWatcher class (
> > http://doc.qt.nokia.com/4.7/qfilesystemwatcher.html) to check if a
> > configuration
> > file has changed. So in newer versions, changes to the published project
> > files
> > should be picked up without restarting apache.
> > 
> > Regards,
> > Marco
> > 
> > Am Dienstag, 18. Oktober 2011, 19.23:28 schrieb G. Allegri:
> > > I haven't found the time to setup a fresher qgismapserver, but looking
> > > at the source code in trunk I can't see what's causing this.
> > > 
> > > It seems that, inside the fcgi loop, a configuration for a requested
> > > MAP confipath is searched inside the cache instance. In case it's
> > > found the result is directly returned, otherwise a new cache entry is
> > > created and returned.
> > > I would expect this should work, but before I will build the trunk
> > 
> > version
> > 
> > > I would like to know if it's solved indeed.
> > > 
> > > thanks,
> > > Giovanni
> > 
> > --
> > Dr. Marco Hugentobler
> > Sourcepole -  Linux & Open Source Solutions
> > Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
> > marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
> > Technical Advisor QGIS Project Steering Committee
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list