Hi,

On Thu, 20 Sep 2018 at 14:26, Stéphane Brunner <
[email protected]> wrote:

> Hello,
>
> 2018-09-20 14:22 GMT+02:00 Adam Borczyk <[email protected]>:
>
>> Forgot my config if it matters:
>> - Ubuntu server 18.04
>> - QGIS Server 2.18
>> - Apache 2.4.29 (config: https://pastebin.com/QnTc19Gj )
>>
>>
>> On Thu, 20 Sep 2018 at 14:19, Adam Borczyk <[email protected]>
>> wrote:
>>
>>> Hi everyone,
>>> is it expected behaviour for QGIS Server 2.18 to ignore MAP parameter in
>>> URL when QGIS_PROJECT_FILE environment variable is set?
>>>
>>
> Yes, because I want to publish only one project, we don't want that a user
> can build a request to access to an other project...
>

I think this could be written more explicitly in the documentation that it
is the purpose of setting environment variable and that it cannot be
overriden. Anyway, thanks for your help, thing is clear now.

Best regards
Adam


>
> Sincerely
> Stéphane
>
>
>
>>
>>> I have QGIS_PROJECT_FILE set, so my endpoint "/wms" serves default
>>> project, but I'd like to access another project from the same endpoint -
>>> I'm trying here with just specifying MAP parameter, but changing it's value
>>> does not affect response in any way. In fact, I can do "&MAP=asdfasdf" and
>>> still get default project, while changing other parameters works normally.
>>>
>>> I though Environment Variable works as default option that you can
>>> override, but it seems it doesn't?
>>>
>>> Best regards
>>> Adam Borczyk
>>>
>>>
>>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> [email protected]
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
>
> *Stéphane Brunner*
> Geospatial Solutions
> Software Developer
>
> *camptocamp*
> INNOVATIVE SOLUTIONS
> BY OPEN SOURCE EXPERTS
>
> camptocamp.com
> mapfish.org
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to