Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

743
Vistas
Why does Apache serve from /usr/local/apache2/htdocs and not /var/www/html?

In /etc/apache2/sites-enabled/000-default.conf I have the following config:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
</VirtualHost>

However, when I visit localhost, I get the "It works!" page, which is located in /usr/local/apache2/htdocs. (I've verified this by changing the file's contents and refreshing the page.)

Why is Apache serving from /usr/local/apache2/htdocs instead of /var/www/html as specified in the config?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Look for a symlink on either /var/www or /var/www/html.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda