Advertisements
Skip to content

How To Configure HTTP Server In Linux

Our Score
Click to rate this post!
[Total: 0 Average: 0]
In This Tutorial We Are Going To Learn How To Configure HTTP Server In Linux

HTTP Server Is Also Known As Apache Server

Firstly Go In Linux Terminal Means {Command prompt Of Linux}

Here Now We Have To Install The Package Of Http

Here Is The Coading Of HTTP Server

# yum install Http* -y
# cd/var/www/html/
# ls {For Check The File And Folder IS Created Or Not}
# vim index.html {After Writing This Command We Have To Do The Coading Of Html}

  hy How Are you
  I Am Fine 

 After Writing This Command We Have To Go Back So First Press The Esc key Then Press :wq {wq means Save And Quit}

# cd {To Come Out From The folder Or File }
# vim /etc/httpd/conf/httpd.conf  {After Write This Command Scroll Down And Go In Last And Type}

 DirectoryIndex index.html
 DocumentRoot /var/www/html

# Service HTTP restart {After doing All The Coadings We Have To Restart The Service}
# Chkconfig httpd on
# Service httpd status {For Know The Status Of Service}
# ifconfig
# httpd -t
# Service httpd restart

Now Go To The Chrome Browser Of Your Windows And Searh With The Ip And See The Output

This Is How We Configure HTTP Server Or You Can Say Apache Server In Linux

Advertisements

One thought on “How To Configure HTTP Server In Linux Leave a comment

Leave a Reply

Discount Offer

Now Get 50% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: