Rowcliffe Browne
4987f3d556
allow AllowEncodedSlashes directive in vhosts.
Apache2 docs state this is global, but vhost overrides it even when not specified.
additionally, this directive is defaulted differently across distributions (eg. CentOS is default 'On')
this change allows control of the directive.
9 jaren geleden
a.genus
cac7545070
Add listen directive to vhosts templates and remove ports.conf
9 jaren geleden
root
3742b40f86
Added support for Alias and Locations, as well as enabling Dav
9 jaren geleden
Rowcliffe Browne
fd49c2c385
fix for symlink docroot failure
9 jaren geleden
Dominik Menzi
ea065e3413
Set vhost sites as enabled by default
9 jaren geleden
Elias Probst
ff2dd397c3
Don't execute `a2dissite` on each state run
Add `onlyif` check to execute `a2dissite` only when needed.
9 jaren geleden
Julien Cristau
9be8ade5aa
allow absence of DocumentRoot
DocumentRoot is useless for a plain redirect or proxy vhost, no need to
force creating the directory.
Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
9 jaren geleden
Mathieu Tarral
a7fb2f89fc
add missing {% endif %}
9 jaren geleden
Mathieu Tarral
c195dce07c
add an 'enabled' attribute for a site in pillar
9 jaren geleden
Rico Moorman
1a2d22b2e8
Correct variable name
9 jaren geleden
Jonathan Ballet
a8f2d89995
ssl: also support the SSLCertificateChainFile required by some providers
9 jaren geleden
Jonathan Ballet
c9d9d954de
proxy: support SSL certificate in the proxy template
9 jaren geleden
Cody Hiar
07b2a9f9f5
Create defaul vhost directories when DocumentRoot is not set
9 jaren geleden
Mosen
d4b1af0af4
Fix unnecessary comparison against boolean in vhosts/standard.tmpl
9 jaren geleden
Mosen
f135e2e0d5
Fix incorrect syntax in pillar example for SSLCertificateFile, SSLCertificateKeyFile
Fix check for SSLCertificateFile, SSLCertificateKeyFile variables in vhosts/standard.tmpl, now using dict.get()
9 jaren geleden
Florian Bittner
dbb86f2bc4
Add basic SSL functionality.
9 jaren geleden
Jonathan Ballet
42426f3f4a
Don't fail on missing DocumentRoot
If the DocumentRoot value wasn't set, applying the state would cause the
following error:
ID: site.example.com-documentroot
Function: file.directory
Name: None
Result: False
Comment: Specified file None is not an absolute path
Started: 15:07:05.596723
Duration: 4.929 ms
Changes:
This fixes the problem by not trying to check for the DocumentRoot directory is
the value is missing.
9 jaren geleden
Jonathan Ballet
74e4c4d7d5
Make proxies order stable
9 jaren geleden
Jonathan Ballet
3f4a7667f7
Jinja's `reverse` is a filter, use it accordingly
9 jaren geleden
Cody Hiar
f1b89abd3b
Update standard.sls
Make sure that you can makedirs incase parent folders are not created
9 jaren geleden
Cody Hiar
138a522f3f
Update standard.sls
Create the vhost DocumentRoot directory if it does not exist
9 jaren geleden
sebastien.fleury
fce8d72c12
Issue#41 configure multi proxypass configuration in vhost
9 jaren geleden
root
2ba72e613d
Add new templates 'proxy.tmpl' and 'redirect.tmpl'. Add comment pointing to new templates to pillar.example.
10 jaren geleden
Adrien Bréfort
3612927174
Fix default Options.
10 jaren geleden
Adrien Bréfort
67e12a8bc2
Fixed Apache 2.4 support and added support for Ubuntu 14.10.
Replace require_all with use_require in map.jinja, we want to be able
to use custom Require values.
Remove uneeded Directory in standard.tmpl and add conditional and
default value for Require.
Fix bad filenames in standard.sls
10 jaren geleden
Berry Langerak
b8fe242d35
Adding support for Apache 2.4 on Ubuntu 14.04
- Adding confext to virtualhost names.
- Renaming the default config file for Ubuntu (000-default.conf).
- Adding ability to use "Require all granted".
10 jaren geleden
Vincent Fretin
0aec048eaf
use test -f instead of ls
10 jaren geleden
vincentfretin
18d8c0c0fb
Don't execute a2ensite if the vhost is already enabled
10 jaren geleden
Adam Herzog
be1aa5629e
Use confext parameter when naming vhost config files.
11 jaren geleden
Arnold Bechtoldt
1fce705bc0
setting the remaining changes caused by the change of cmd.wait to .module.wait in init.sls
11 jaren geleden
Michal Galet
a3299dc1eb
States for apache-reload and apache-restart using module.wait not working
11 jaren geleden
Jorge Rodriguez
845b58d15f
CustomLog directive takes two parameters. Introduced LogFormat variable and defaulted to "common" format.
11 jaren geleden
Alan McNea
c863598ec7
Moved apache-reload and apache-restart commands to init.sls and invoke apache-reload from standard.sls
11 jaren geleden
Alan McNea
e34c476ea1
Added DirectoryIndex, UseCanonicalName, and VirtualDocumentRoot properties to standard.tmpl
11 jaren geleden
Alan McNea
b51e442440
Fixed bugs in standard.tmpl
11 jaren geleden
Seth House
f1cff2dd22
Renamed package-map.jinja to map.jinja; is used for more than package names
11 jaren geleden
Seth House
2499a50135
Added apache.vhost formula
11 jaren geleden