now, let us, test the configuration syntax and then reload the Apache Web server, so you have
got to command service httpd configtest for testing.
It will say syntax is.
Okay.
And it is also saying that NameVirtualHost has no effect and will be removed in the next release.
So that parameter was optional.
Then we can use the apachectl configtest for testing the syntax and then httpd -t
can be used.
Then we are going to reload our httpd that mean all are showing that syntax is.
Okay, so let us go to our server and run these commands.
So the service
httpd configtest, it is saying that syntax is okay then we can run this apachectl configtest.
You can run any of these.
Command.
Again it is showing the same.
The syntax is okay then httpd.
-t can be used so our syntax is okay then.
systemctl reload.
httpd.
So we have entries in our httpd.config file was okay and now we have restarted the server
also.
Now let us test our implementation of name based virtual hosting.