Wed Oct 4 08:03:23 2017 UTC

Setup of an HTTP server


An http server can be useful if we want to test some html pages on a real browser. If we want to create our own website to be locally accessible from home or why not make it public on the net.

Packages to install

To install and activate the http service, you will see, it's very simple. We open a terminal:

get apache apache.service

That's it, the installation is already done.


The default configuration of the apache http server is basic, it is recommended you make a customise configuration

We start to create a customised html file

In root then:

cat > /srv/www/index.html << EOF
      <TITLE>Welcome on your HTML server</TITLE>
    <H1>Your NuTyX http server is working</H1>
      <P>Hello everybody !

Service starting

We activate the service, still in root:

/etc/rc.d/init.d/httpd start
  *   Starting Apache HTTP daemon... [  OK  ]

You can check the result of your work by going to the URL address: http://localhost/ with your favourite browser