1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

hard code a ficticious, but stable, server name for url linked to by captive portal

This commit is contained in:
George Hunt 2018-10-01 19:48:08 +00:00
parent e26aa688c7
commit d90b6becb9
5 changed files with 5 additions and 4 deletions

View file

@ -10,3 +10,4 @@ OS={{ ansible_local.local_facts.os }}
OS_VER={{ ansible_local.local_facts.os_ver }} OS_VER={{ ansible_local.local_facts.os_ver }}
WWWROOT={{ doc_root }} WWWROOT={{ doc_root }}
STAGE=1 STAGE=1
FQDN={{ iiab-fqdn }}

View file

@ -176,8 +176,8 @@ DocumentRoot "{{ doc_root }}"
<VirtualHost *:80> <VirtualHost *:80>
ErrorLog /var/log/apache2/error.log ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined CustomLog /var/log/apache2/access.log combined
ServerName box ServerName {{ iiab_hostname }}
ServerAlias box.lan ServerAlias server.lan
<Directory "{{ doc_root }}"> <Directory "{{ doc_root }}">
Options Indexes FollowSymLinks Options Indexes FollowSymLinks
AllowOverride None AllowOverride None

View file

@ -48,7 +48,7 @@
<br><br> <br><br>
<br><br> <br><br>
<br><br> <br><br>
<a class="button" href="http://box.lan/home">{{ btn1 }}</a> <a class="button" href="http://server.lan/home">{{ btn1 }}</a>
</div> </div>
</body> </body>
</html> </html>

View file

@ -69,7 +69,7 @@
<script> <script>
var w = window.innerWidth; var w = window.innerWidth;
function homeclick(){ function homeclick(){
window.open("http://box.lan/home","_system"); window.open("http://server.lan/home","_system");
$.ajax("/home_selected"); $.ajax("/home_selected");
} }