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

175
Vistas
Apache2 Virtual Host is ignored except for ServerAlias

I'm attempting to have domainname.com and www.domainname.com go to my virtual host instead of the 000-default host. While going to www.domainname.com works as intended and returns the virtual host site, domainname.com still returns the apache2 "It works!" page.

(Actual domain name was replaced with domainname.com)

Contents of /etc/apache2/sites-available/domainname.com.conf:

<VirtualHost *:80>
    ServerName domainname.com
    ServerAlias www.domainname.com
    DocumentRoot /var/www/domainname.com
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    DirectoryIndex index.html
<Directory /var/www/domainname.com>
    Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
    Allow from all
    AllowOverride All
</Directory>
    RewriteEngine on
</VirtualHost>

Any ideas as to what may be causing this?

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

0

It appears my browser had cached the result of domainname.com and continued to serve the cached copy. Other browsers display the correct result.

This seriously had me stumped for over an hour and clearing my cache was the fix.

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