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

261
Views
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 answers
Answer question

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 Report

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 Report
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!