25 lines
672 B
Django/Jinja
25 lines
672 B
Django/Jinja
<VirtualHost *:80>
|
|
|
|
ServerAdmin "admin@{{ ansible_hostname }}"
|
|
DocumentRoot "{{ document_root }}/{{ package }}"
|
|
ServerName "{{ ansible_hostname }}"
|
|
ServerAlias "{{ ansible_hostname }}"
|
|
|
|
<Directory "{{ document_root }}/{{ package }}" >
|
|
Options FollowSymlinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
<Directory "{{ document_root }}/{{ package }}" >
|
|
RewriteEngine on
|
|
RewriteBase /
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^(.*) index.php [PT,L]
|
|
</Directory>
|
|
|
|
</VirtualHost>
|