C
C
Castro2012-11-26 12:20:32
Apache HTTP Server
Castro, 2012-11-26 12:20:32

Apache log output running in VirtualBox?

Good afternoon!
The virtual machine on my computer is running Apache with a special configuration.
The virtual machine eats decent resources, I plan to run it in a headless mode.
I wanted to know if it is possible to somehow read these logs outside the virtual machine (mainly access and error logs), do something like a script / daemon read and send to some port, and then read from outside the machine? Drive data through a socket? Give a packet of data with an HTTP request, parse and display in the browser?
Perhaps there are some ready-made solutions for such situations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DmZ, 2012-11-26
@DmZ

The easiest thing to do is to install Guest Additions on a virtual machine and connect Shared Folders. Then Apache can simply be configured to log to this folder, and you will immediately see the logs on the host system. The method is universal and applicable to both Windows and Linux host / guest systems.
If you want something more strange (I think it's Linux host / guest), you can configure syslog on the host system to listen over the network, and on the guest system, Apache can log to the local syslog, which will then forward messages to the host system. ( Example of configuring Apache to local syslog )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question