It can be done with the help of Name Based Virtual hosting.
ServerName 127.0.0.1
NameVirtualHost *:80
ServerName web1.test.com
DocumentRoot /var/www/html/web1
ServerName web2.test2.com
DocumentRoot /var/www/html/web2
It can be done with the help of Name Based Virtual hosting.
ServerName 127.0.0.1
NameVirtualHost *:80
ServerName web1.test.com
DocumentRoot /var/www/html/web1
ServerName web2.test2.com
DocumentRoot /var/www/html/web2
Loglevel debug will give you more information in the error log in order to debug a problem.
mod_perl scripting module to allow better Perl script performance and easy integration with the web server.
During a normal restart, the server is stopped and then started, causing some requests to be lost. A graceful restart allows Apache children to continue to serve their current requests until they can be replaced with children running the new configuration.
The main configuration file of Apache server is httpd.conf
It is a location of files which are accessible by clients. By default, the Apache HTTP server in RedHat Enterprise Linux is configured to serve files from the /var/www/html/ directory.
Use the following command to stop Apache service
service httpd stop
root@hp-Compaq-Presario-CQ40-Notebook-PC:~# apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built: Mar 10 2015 13:05:59
Use the following command to restart Apache service
service httpd restart