inital; add index.php and apache2 config

This commit is contained in:
lare 2022-09-13 21:09:39 +02:00
commit 9483c68d63
Signed by: lare
GPG key ID: 30C10A93B8B8E9FE
3 changed files with 36 additions and 0 deletions

4
README.md Normal file
View file

@ -0,0 +1,4 @@
# myip.dn42
- (source code)[wwwroot]
- (apache2 config)[apache2-config]

View file

@ -0,0 +1,29 @@
# or potentially use anycast 172.22.0.81 if approved
<VirtualHost 172.22.125.30:80>
ServerName myip.dn42
ServerAlias v4.myip.dn42
ServerAlias 172.22.125.30
DocumentRoot /path/to/wwwroot/
ErrorLog ${APACHE_LOG_DIR}/error-myip.dn42.log
CustomLog ${APACHE_LOG_DIR}/access-myip.dn42.log combined
</VirtualHost>
# or potentially use anycast [fd42:d42:d42:81::1] if approved
<VirtualHost [fd63:5d40:47e5::1111]:80>
ServerName myip.dn42
ServerAlias v6.myip.dn42
ServerAlias fd63:5d40:47e5::1111
DocumentRoot /path/to/wwwroot/
ErrorLog ${APACHE_LOG_DIR}/error-myip.dn42.log
CustomLog ${APACHE_LOG_DIR}/access-myip.dn42.log combined
</VirtualHost>

3
wwwroot/index.php Normal file
View file

@ -0,0 +1,3 @@
<?php
print($_SERVER['REMOTE_ADDR']);
?>