General

  eZ Systems Website
  Editor documentation


  Developer documentation

  Back to the top

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos corrected

Configuration files

You can find configuration files in the doc/ directory of the software, for the following web server engines:

and also configuration files for

Generate vhost config script

In addition to that, you have a Bash script for generating a virtual host configuration based on template, containing variables among the once define below.
For help text, execute: ./bin/vhost.sh -h

Help

 

Code Block
languagebash
themeRDark
./bin/vhost.sh [-h|--help]

 

Usage

Code Block
languagebash
themeRDark
$> ./bin/vhost.sh --basedir=/var/www/ezplatform \\

  --template-file=doc/apache2/vhost.template \\

  | sudo tee /etc/apache2/sites-enabled/my-site > /dev/null

Default values will be fetched from the environment variables $env_list, but might be overridden using the arguments listed below.

Arguments

OptionDescription

--basedir=<path>

Root path to where the eZ installation is placed, used for <path>/web

--template-file=<file.template>

The file to use as template for the generated output file

--host-name=localhostPrimary host name, default "localhost"

--host-alias=*.localhost

Space separated list of host aliases, default "*.localhost"

--ip=*|127.0.0.1

IP address web server should accept traffic on.

--port=80]

Port number web server should listen to

--sf-env=prod|dev|..

Symfony environment used for the virtual host, default is "prod"

--sf-debug=0|1

Set if Symfony debug should be on, by default on if env is "dev"

--sf-trusted-proxies=127.0.0.1,....

Comma separated trusted proxies (e.g. Varnish), that we can get client IP from

--sf-http-cache=0|1

To disable Symfony HTTP cache Proxy for using a different reverse proxy

By default disabled when env is "dev", enabled otherwise.

--sf-http-cache-class=<class-file.php>To specify a different class then than the default one, to use as the Symfony proxy
--sf-classloader-file=<class-file.php>To specify a different class then than the default one, to use for PHP auto loading

--body-size-limit=<int>

Limit in megabytes for max size of request body, 0 value disables limit
--request-timeout=<int>Limit in seconds before timeout of request, 0 value disables timeout limit

Table of Contents