[Lizmap] Fwd: Variable domainName
Laurent Jouanneau
ljouanneau at 3liz.com
Mon Mar 8 05:42:04 PST 2021
Oh, ok, i did not see the "temp/" part into your path. I though you talk
about lizmap/www/index.php.
You must not modify files that are into temp/, because these files are
generated automatically by the framework used by Lizmap, and so any
modification could disappear.
The files you modified are the result of combination of several
configuration files (mainconfig.ini.php, localconfig.ini.php etc.. see
https://docs.lizmap.com/current/en/install/configuration.html)
the domainName configuration parameter is empty by default, and then is
filled automatically with the HTTP_HOST or the SERVER_NAME php variables
(from ($_SERVER). So if you have a bad value into it, fix theses
parameters in your server configuration or set domainName with the real
value (the domain name you type into your web browser when you load
Lizmap). Into lizmap/var/config/localconfig.ini.php, add this line at
the begining of the file :
domainName=example.com
See details here
https://docs.lizmap.com/current/en/install/advanced_install.html#advanced-installation-configuration
Laurent
Le 08/03/2021 à 11:38, Nuno Silva a écrit :
>
> Hi there.
> Thanks for the quick reply
>
> I didn't mentioned the full name of the .PHP files @
> ../lizmap-web-client/temp/lizmap/www/
>
> Here they are (attached) :
>
> I'm running this lizmap instance on a docker container with a custom
> dockerfile based on ubuntu:bionic.
>
> Like I said, after the installation, I always get this "variable"
> filled with value lizmap
> 'domainName' => 'lizmap'
>
>
> Laurent Jouanneau <ljouanneau at 3liz.com <mailto:ljouanneau at 3liz.com>>
> escreveu no dia domingo, 7/03/2021 à(s) 19:55:
>
> Hi,
>
>
> Le 05/03/2021 à 15:51, Nuno Silva a écrit :
>> Hi there.
>>
>>
>> I started using Lizmap again since yestarday, when v 3.4.2 was
>> released...everything works fine except something that is annoying.
>>
>> After installing lizmap 3.4.2 and I add a project immediately ,
>> when I click on View Metadata button, the WMS/WMTS URL always
>> start with HTTP://lizmap/. <HTTP://lizmap/.>..
>>
>> Then I have to edit the file
>> at /srv/lizmap-web-client/temp/lizmap/www (index and admin .PHP)
>> to change the variable domainName from 'lizmap' to ''
>
>
> There is no variable "domainName" in these PHP files. Are you sure
> you have the original PHP files from Lizmap source code?
>
> What are these changes? Could we see this index.php?
>
>
> Laurent
>
>
>>
>> I then delete the project, clear the cache and add it again,
>> ainda everything looks fine.
>>
>> Where do I have to declare this variable so I don't have to do this?
>> It sound like noobish, but I haven't found a answer yet
>>
>> Best regards,
>> NMS
>>
>>
>> _______________________________________________
>> Lizmap mailing list
>> Lizmap at lists.osgeo.org <mailto:Lizmap at lists.osgeo.org>
>> https://lists.osgeo.org/mailman/listinfo/lizmap <https://lists.osgeo.org/mailman/listinfo/lizmap>
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org <mailto:Lizmap at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/lizmap
> <https://lists.osgeo.org/mailman/listinfo/lizmap>
>
>
>
> --
> Com os melhores cumprimentos,
> Nuno A.C. Machado da Silva
>
>
> --
> Com os melhores cumprimentos,
> Nuno A.C. Machado da Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20210308/87b273f0/attachment.html>
More information about the Lizmap
mailing list