Friday, May 25, 2012

Configure Apache HTTP Server in Linux


To configure the apache http server linux, please do the following steps.

1. If you are not installed apache http server in linux, please follow the link for the installation.

http://mye20.blogspot.in/2012/05/install-apache-http-server-in-linux.html

2. Go to the directory, /usr/local/apache/conf

3. Edit the httpd.conf file and search the below entries,

ServerRoot
DocumentRoot

4. We can follow with default entries of ServerRoot and DocumentRoot, or we can configure the path.For that edit DocumentRoot and add the new values.

ServerRoot "/usr/local/apache"
DocumentRoot "/usr/local/apache/htdocs"

5, Put some image (sat a1.jpg) in htdocs directory and access the URL : http://<hostname>/a1.jpg
   If you are able to see the image, then the configuration is success.

No comments:

Post a Comment