Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
Cómo anular Apache ErrorLog para un VirtualHost

Me gustaría dirigir la salida de error de Apache a /proc/self/fd/1 en un bloque VirtualHost , pero continúa generando el archivo configurado en apache2.conf ( error.log ).

/etc/apache2/apache2.conf:

 ErrorLog ${APACHE_LOG_DIR}/error.log

/etc/apache2/sites-enabled/vhost.conf:

 <VirtualHost _default_:80> DocumentRoot /data/frontend/web/ RewriteEngine On DirectoryIndex index.php <Directory /data/frontend/web/> Options FollowSymLinks AllowOverride All Require all granted </Directory> LogLevel info ErrorLog /proc/self/fd/1 CustomLog /var/log/apache2/access.log combined </VirtualHost> <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch>

Intenté usar un archivo para solucionar problemas ( ErrorLog /var/log/apache2/verrors.log ) y veo que Apache crea el archivo verrors.log pero permanece vacío y el archivo error.log recibe los mensajes de registro.

Otra configuración en vhost.conf funciona como se esperaba, incluso la directiva CustomLog .

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!