apache vhost not working consistently
- by petrus
I have a vhost on my webserver whose sole and unique goal is to return the client IP adress:
petrus@bzn:~$ cat /home/vhosts/domain.org/index.php
<?php echo $_SERVER['REMOTE_ADDR']; echo "\n" ?>
This helps me troubleshoot networking issues, especially when NAT is involved. As such, I don't always have domain name resolution and this service…