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

263
Vistas
Handle multiple domains without restarting HTTP server

Let's assume I have multiple domains pointing to one server. I know that I can have multiple virtual hosts in Apache for example, but every time I want to add a new website I have to change the configuration and restart the server.

I am looking for hosting multiple domain names without having to create a config file each time. Why ? because after creating a config file, I have then to restart the HTTP server which means that each domain I add will block all the other domains for a period of time.

Basically I want a config or program that points dynamically each domain to a sub-folder of my main source code without having to create a config file or restarting the HTTP server.

Please let me know if this is doable with the current HTTP servers or if not point me to some resources that will help me do this programatically.

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

0

With most standard web servers you simply cannot do this without a restart or at least reload of the service (so it picks up the new configs).

Of course you could build your own solution, based on your requirements.

over 4 years ago · Santiago Trujillo Denunciar

0

You can reload the server without restart it, a reload keep the active connections up, so you can load the changes in your configuration without restarting the server.

Command for nginx: nginx -s reload

I suggest to use nginx -t && nginx -s reload in order to check the configuration before reloading

Command for Apache: apachectl -k graceful, systemctl reload httpd.service, service apache2 reload, service httpd reload (it depends on your environment)

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