Apache Web Server
Saturday, April 4, 2009
APACHE WEB SERVER
We are assuming the FQDN of our Web Server is – mail.bera.com and the IP address is 192.168.100.2. Our DNS Server is configured properly and it is running.
Minimum Configuration to start the Web Server: -
The main configuration file is /etc/httpd/conf/httpd.conf.
Please make a copy of the httpd.conf file by using the following command –
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.org
Now you have to edit the file as below step.
1. Edit the /etc/httpd/conf/httpd.conf file -
(Find the ‘ServerName’ directive and place the FQDN or IP address as follows -
ServerName 192.168.100.2:80
2. Put an html file (which will be displayed as your ‘home page’) in the /var/www/html
directory. The preferred name of the file, may be, index.html.
3. Start the httpd server - service httpd start or /etc/init.d/httpd start
To start the service every time you boot the system, run the following command –
chkconfig httpd on
This is a very simple configuration. Isn’t it?
If you have any problem then post your comment’s that I can provide the solution.
We are assuming the FQDN of our Web Server is – mail.bera.com and the IP address is 192.168.100.2. Our DNS Server is configured properly and it is running.
Minimum Configuration to start the Web Server: -
The main configuration file is /etc/httpd/conf/httpd.conf.
Please make a copy of the httpd.conf file by using the following command –
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.org
Now you have to edit the file as below step.
1. Edit the /etc/httpd/conf/httpd.conf file -
(Find the ‘ServerName’ directive and place the FQDN or IP address as follows -
ServerName 192.168.100.2:80
2. Put an html file (which will be displayed as your ‘home page’) in the /var/www/html
directory. The preferred name of the file, may be, index.html.
3. Start the httpd server - service httpd start or /etc/init.d/httpd start
To start the service every time you boot the system, run the following command –
chkconfig httpd on
This is a very simple configuration. Isn’t it?
If you have any problem then post your comment’s that I can provide the solution.
Labels: Apache, configuration, instalation, Linux, Web Server
Post a Comment