mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
make mw use current host instead of localhost
This commit is contained in:
parent
932efe5574
commit
7c3a92b029
1 changed files with 7 additions and 3 deletions
|
@ -68,13 +68,17 @@
|
|||
lineinfile:
|
||||
dest: "{{ mediawiki_abs_path }}/LocalSettings.php"
|
||||
line: '$wgArticlePath = "/wiki/$1";'
|
||||
create: yes
|
||||
|
||||
- name: Configure wgUsePathInfo variable in {{ mediawiki_abs_path }}/LocalSettings.php
|
||||
- name: Configure $wgUsePathInfo variable in {{ mediawiki_abs_path }}/LocalSettings.php
|
||||
lineinfile:
|
||||
dest: "{{ mediawiki_abs_path }}/LocalSettings.php"
|
||||
line: '$wgUsePathInfo = true;'
|
||||
create: yes
|
||||
|
||||
- name: Configure $wgServer variable in {{ mediawiki_abs_path }}/LocalSettings.php
|
||||
lineinfile:
|
||||
dest: "{{ mediawiki_abs_path }}/LocalSettings.php"
|
||||
regexp: '^\$wgServer ='
|
||||
line: '$wgServer = "//" . $_SERVER["HTTP_HOST"];'
|
||||
|
||||
- name: Install /etc/{{ apache_config_dir }}/mediawiki.conf from template, for http://box{{ mediawiki_url }} via Apache
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue