![]() |
|
ForumMon Mar 27 12:18:18 2023 UTC Help: Installationteniie2 ![]() Wed Mar 22 21:50:59 2023 UTC Help: GeneralThierry ![]() Mon Mar 20 22:49:30 2023 UTC Help: GeneralThierry ![]() Sat Mar 18 17:50:53 2023 UTC Help: GeneralDj ![]() Sat Mar 18 16:20:49 2023 UTC Help: Generalvikrang ![]() Sun Mar 12 22:33:33 2023 UTC Help: ProgrammingThierry ![]() Thu Mar 9 17:29:47 2023 UTC Help: ProgrammingFerran ![]() Thu Mar 9 11:49:10 2023 UTC Help: Installationteniie2 ![]() Tue Mar 7 07:15:07 2023 UTC Help: ProgrammingThierry ![]() Mon Mar 6 17:37:51 2023 UTC Documentation: Tips and TricksFerran ![]() |
Thu Sep 5 19:31:46 2019 UTC Setup of an HTTP serverIntroductionAn 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 installThe 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. ConfigurationThe 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 startingActivate 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. |