owncloud-ansible / apache Goto Github PK
View Code? Open in Web Editor NEWAnsible role for Apache2
Home Page: https://owncloud-ansible.github.io
License: Apache License 2.0
Ansible role for Apache2
Home Page: https://owncloud-ansible.github.io
License: Apache License 2.0
Use var extra_parameters and add some content
<Directory "/var/www/owncloud">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
Redirect / https://owncloud.net
<Directory "/var/www/owncloud">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
R
e
d
i
r
e
c
t
/
h
t
t
...
change
{% for param in vhost.extra_parameters | default([]) %}
{{ param }}
{% endfor %}
to this
{% if vhost.extra_parameters is defined %}
{{ vhost.extra_parameters }}
{% endif %}
works fine for me, for is not needed
Hi Robert,
i don't understand how to configure Apache ports listen with more than one port.
I need the following entry in my Apache config file
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Listen 443
In the defaults i have my ports configured e.g:
---
apache_listen_ip: "*"
apache_listen_port: 80
apache_listen_port_ssl: 443
After looking at the tasks i understand there is a loop apache_ports_configuration_items so i moved to the vars/ file
__apache_ports_configuration_items:
- regexp: "^Listen "
line: "Listen {{ apache_listen_port }}"
adding my apache_listen_ports_ssl is no solution, because apache_listen_port it get overwritten
- regexp: "^Listen "
line: "Listen {{ apache_listen_port }}"
- regexp: "^Listen "
line: "Listen {{ apache_listen_port_ssl }}"
Can you give me a hint?
My workaround was to alter the tasks and replace regexp with insertafter
- name: Configure Apache
lineinfile:
dest: "{{ apache_port_conf_file }}"
insertafter: "{{ item.insertafter }}"
line: "{{ item.line }}"
state: present
loop: "{{ apache_ports_configuration_items }}"
notify: __apache_restart
so in my vars file i do this
__apache_ports_configuration_items:
- insertafter: "^Listen "
line: "Listen {{ apache_listen_port }}"
- insertafter: "^Listen {{ apache_listen_port }}"
line: "Listen {{ apache_listen_port_ssl }}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.