Forum

Wed Feb 28 14:42:19 2024 UTC
Cards: The Package Manager
Re: Extremely slow download speed
Sun Feb 25 23:31:04 2024 UTC
Cards: The Package Manager
Extremely slow download speed
Sat Feb 24 03:36:33 2024 UTC
General
Re: Shutdown issues
Sun Feb 18 19:09:11 2024 UTC
General
Re: Shutdown issues
Sun Feb 18 12:29:38 2024 UTC
General
Re: Wireguard Package Request
Sun Feb 18 11:03:40 2024 UTC
General
Re: Shutdown issues
Sat Feb 17 19:58:32 2024 UTC
General
Re: Shutdown issues
Sat Feb 17 11:02:14 2024 UTC
General
Re: Shutdown issues
Sat Feb 17 04:58:06 2024 UTC
General
Shutdown issues
Wed Feb 14 06:37:03 2024 UTC
General
Re: Wireguard Package Request [SOLVED]

Thu Sep 5 19:31:46 2019 UTC

Setup of an HTTP server

Introduction

An http server can be useful if we want to test some html pages on a real browser. It will allow us to create our own website that is locally accessible from a home network. In addition, an http server also allows us to make a webpage that can be made public for all of the internet.

Packages to install

The installation and activation of the http service is very simple. Open a terminal and enter the command:

get apache apache.service

That's it, the installation is already done.

Configuration

The default configuration of the apache http server is basic. It is recommended you make a custom configuration.

The example that follows shows the creation of a customised html file.

This command is ran as root:

cat > /srv/www/index.html << EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
   <HEAD>
      <TITLE>Welcome on your HTML server</TITLE>
   </HEAD>
   <BODY>
    <H1>Your NuTyX http server is working</H1>
      <P>Hello everybody !
   </BODY>
</HTML>
EOF

Service starting

Activate the service, still as 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 favorite browser.