-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvhost.template
76 lines (58 loc) · 3.16 KB
/
vhost.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
server {
listen %PORT%;
# Further documentation: http://nginx.org/en/docs/http/server_names.html
server_name %HOST_LIST%;
root %BASEDIR%/web;
# Additional Assetic rules for eZ Publish 5.1 / 2013.4 and higher.
## Don't forget to run php app/console assetic:dump --env=prod
## and make sure to comment these out in DEV environment.
#if[SYMFONY_ENV!=dev] include ez_params.d/ez_prod_rewrite_params;
# Cluster/streamed files rewrite rules. Enable on cluster with DFS as a binary data handler
#rewrite "^/var/([^/]+/)?storage/images(-versioned)?/(.*)" "/app.php" break;
# ez rewrite rules
include ez_params.d/ez_rewrite_params;
# upload max size
client_max_body_size %BODY_SIZE_LIMIT_M%;
# FPM fastcgi_read_timeout
fastcgi_read_timeout %TIMEOUT_S%;
location / {
location ~ ^/app\.php(/|$) {
include ez_params.d/ez_fastcgi_params;
# FPM socket
# Possible values : unix:/var/run/php5-fpm.sock or 127.0.0.1:9000
fastcgi_pass %FASTCGI_PASS%;
## eZ Platform ENVIRONMENT variables, used for customizing app.php execution (not used by console commands)
# Environment.
# Possible values: "prod" and "dev" out-of-the-box, other values possible with proper configuration
# Make sure to comment the "ez_params.d/ez_prod_rewrite_params" include above in dev.
# Defaults to "prod" if omitted
#if[SYMFONY_ENV] fastcgi_param SYMFONY_ENV %SYMFONY_ENV%;
# Whether to use custom ClassLoader (autoloader) file
# Needs to be a valid path relative to root web/ directory
# Defaults to bootstrap.php.cache, or autoload.php in debug
#if[SYMFONY_CLASSLOADER_FILE] fastcgi_param SYMFONY_CLASSLOADER_FILE "%SYMFONY_CLASSLOADER_FILE%";
# Whether to use debugging.
# Possible values: 0 or 1
# Defaults to 0 if omitted, unless SYMFONY_ENV is set to: "dev"
#if[SYMFONY_DEBUG] fastcgi_param SYMFONY_DEBUG "%SYMFONY_DEBUG%";
# Whether to use Symfony's HTTP Caching.
# Disable it if you are using an external reverse proxy (e.g. Varnish)
# Possible values: 0 or 1
# Defaults to 1 if omitted, unless SYMFONY_ENV is set to: "dev"
#if[SYMFONY_HTTP_CACHE] fastcgi_param SYMFONY_HTTP_CACHE "%SYMFONY_HTTP_CACHE%";
# Whether to use custom HTTP Cache class if SYMFONY_HTTP_CACHE is enabled
# Value must be na autoloadable cache class
# Defaults to "AppCache"
#if[SYMFONY_HTTP_CACHE_CLASS] fastcgi_param SYMFONY_HTTP_CACHE_CLASS "%SYMFONY_HTTP_CACHE_CLASS%";
# Defines the proxies to trust.
# Separate entries by a comma
# Example: "proxy1.example.com,proxy2.example.org"
# By default, no trusted proxies are set
#if[SYMFONY_TRUSTED_PROXIES] fastcgi_param SYMFONY_TRUSTED_PROXIES "%SYMFONY_TRUSTED_PROXIES%";
}
}
# Custom logs
# access_log %BASEDIR%/app/logs/httpd-access.log;
# error_log %BASEDIR%/app/logs/httpd-error.log notice;
include ez_params.d/ez_server_params;
}