listener.xml

Default Configurations

Custom listener.xml

Template for a Custom listener.xml

Tags for Defining an Application Server Instance

Cookie Attributes

Content Security Policy

HTML Page Language

Managing Your Application Server Instances

listener.xml is a file where you can define and configure application server instances. By default, the listener.xml file is not created by Querix Package Manager. Create one to store non-default configurations.

Default Configurations

By default, Lycia comes with two application instances:

Default instances have the following parameters:

<xml>
  <service>
    <name>default</name>
    <applicationdir>C:\ProgramData\Querix\Lycia\progs</applicationdir>
    <logdir>C:\ProgramData\Querix\Lycia\logs</logdir>
    <envfile>C:\ProgramData\Querix\Lycia\etc\inet.env</envfile>
    <authmode>none</authmode>
    <auth_module>modauthnt.dll</auth_module>
    <logging>true</logging>
    <description>Default no authentication listener</description>
    <enabled>true</enabled>
  </service>

  <service>
    <name>secure</name>
    <applicationdir>C:\ProgramData\Querix\Lycia\progs</applicationdir>
    <logdir>C:\ProgramData\Querix\Lycia\logs</logdir>
    <envfile>C:\ProgramData\Querix\Lycia\etc\inet.env</envfile>
    <authmode>full</authmode>
    <auth_module>modauthnt.dll</auth_module>
    <logging>true</logging>
    <description>Default full authentication listener</description>
    <enabled>true</enabled>
  </service>
</xml>

With no custom listener.xml, Lycia default settings for the application server are:

Note: At the beginning of your work with LVSCE, go to the settings area and specify the default or secure option for the Lycia: Debug: Default Server Instance setting.

Custom listener.xml

You may need several custom application server instances - for example, if you intend to use different working directories and different sets of environment variables for different projects. Configure these custom application server instances in you listener.xml file.

Attention: When you create your custom listener.xml and define your custom application server instances, the default ones are disabled (and become unavailable).

To create custom listener.xml, follow these steps:

Step 1. Stop Lycia Web Server;

Step 2. In your VS Code's Workspace area, open the etc folder within the LYCIADIR. By default, the paths should be:

The file will open in the Editor area;

Step 4. Copy the template given below to this file;

Attention: It is important to copy the entire template, as tags listed in it are mandatory. Note that there is a set of optional tags that are used for special purposes:

Step 7. Start Lycia Web Server.

Attention: You can create as many application server instances as you need. Yet, all these instance definitions must be added to the same listener.xml file.

Note: If you want to keep one or both default application server instances and use them together with your custom ones, you must copy their definition to your custom listener.xml.

Template for a Custom listener.xml

When you define your custom application server instances, you must set values to all the following tags:

<xml>
  <service>
    <name>...</name>
    <applicationdir>...</applicationdir>
    <logdir>...</logdir>
    <envfile>...</envfile>
    <authmode>...</authmode>
    <auth_module>...</auth_module>
    <logging>...</logging>
    <description>...</description>
    <enabled>...</enabled>
    <wait_for_client_to_connect>...</wait_for_client_to_connect>
  </service>
</xml>

Note: If necessary, you can copy them from the Default Instances templates.

When setting <auth_module></auth_module> for , you can use one or more of the authentication libraries supported by Lycia – modauthcrypt.so, modauthshadow.so, or modauthpam.so.

Tags for Defining an Application Server Instance

These are the tags with that define application server instances:

Optional tags:

 

Cookie Attributes

You can configure the attributes of cookies in listener.xml file. You can set any combination of these attributes in the <cookie_attributes> tag and it is up to web browser to accept or decline resulting cookies.

If they are not configured, the default behaviour is:

The configuration is the following: set cookie attribute values in the cookie_attributes tag. Example:

<cookie_attributes http-only=”true” secure=”true” same-site=”None” />

Attribute Value
same-site None, Lax, Strict.
http-only true / false or yes / no
secure true / false or yes / no

Attribute names are case-sensitive (lowercased). Attribute values are case-insensitive (Lax and lax are equivalent, Yes and yes too).

 

Content Security Policy

The content security policies are specified withing the <content_security_policy> tag:

<xml>
  ...
  <content_security_policy>...</content_security_policy>
  ...
</xml>

The default set of the directives, hardcoded in LyciaWeb.war:

connect-src 'self' data: blob:

style-src 'nonce-<autogenerated hash>' 'strict-dynamic' 'self'

script-src 'nonce-<autogenerated hash>' 'strict-dynamic' 'self' https: blob:

object-src 'self'

form-action 'self'

frame-src 'self' data: blob:

media-src 'self'

frame-ancestors 'self'

img-src 'self' data: blob:

default-src 'self'

font-src 'self' data:;

Should you need to set other values, set custom policy values in:

<xml>
  ...
  <content_security_policy>...</content_security_policy>
  ...
</xml>
Note: The global set above applies to every service in listener.xml.

 

HTML Page Language

For a generated HTML page at a program runtime, you can specify the page language for the purpose of better accessibility within the tag <html_lang> in the following format: <language[_country]>. For example, for the German language and Germany, add the following:

<xml>

...

<html_lang>de_DE</html_lang>

...

</xml>

 

Managing Application Server Instances

To modify an existing AppServer instance, follow these steps:

Step 1.Stop Lycia Web Server.

Step 2. Open listener.xml in your VS Code instance and add necessary changes to one of the existing <service>...</service> blocks.

Step 3.Start Lycia Web Server.

 

To delete an existing AppServer instance, please follow these steps:

Step 1.Stop Lycia Web Server.

Step 2. Open listener.xml in your VS Code instance.

Step 3. Select and delete one of the existing <service>...</service> blocks.

Step 4. Start Lycia Web Server.

 

 

 

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.