To show full domain name in Apache access log, you can use following log format
1 |
LogFormat %h %l %u %t \"%m http://%v%U\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" common |
If you want to show port also, use
1 |
LogFormat %h %l %u %t \"%m http://%v:%p%U\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" common |