Alireza
Alireza

Reputation: 1438

How can I configure Virtual Host without restarting Apache web server?

I created a new virtual host in apache web server and I dont want to restart Apache

Does Anybody know How can I configure VirtualHost without restarting Apache web server?

Also Is it possible to do it on windows server?

Upvotes: 0

Views: 2103

Answers (2)

Manu VS
Manu VS

Reputation: 71

You can reload apache2 for get affect newly changes.

$ sudo systemctl reload apache2

Upvotes: 1

donald123
donald123

Reputation: 5739

this is not possible .... you have to restart the server to get new / changed vhost.

what you can do is: restart the server without kill any active connections by:

/etc/init.d/apache2 -graceful [*]

[*] /etc/init.d/apache2 is your executable file

Upvotes: 1

Related Questions