How to properly configure Apache server that way I can view Apache log files in browser? Using Ubuntu and log files reside in
/var/log/apache2/access.log which is outside
You can always symlink in directories from outside the web root, or use an "Alias" (even better) in the configuration to point to a specific directory outside the web root.
The logs are only readable by root and the
As @DanielAndersson noted in his answer, the logs are only readable by root, so accessing via the web might not be a good idea. But if you have ssh access to the system, you can login and simply tail the log file.