Outils pour utilisateurs

Outils du site


issue194:c_c

Ceci est une ancienne révision du document !


Though I try to keep our CnC as n00b friendly as possible, I may not explain as well as I should, so if you get stick, let us know on misc@fullcirclemagazine.org

Apache is free and open source. It is simple to set up. On the official Ubuntu page, you can find the instructions: https://ubuntu.com/tutorials/install-and-configure-apache#2-installing-apache

I suggest you open the page and pop your terminal next to it.

Once completed, move to the next page: https://ubuntu.com/tutorials/install-and-configure-apache#3-creating-your-own-website

You can make the folder name meaningful or keep that gci as per the instructions. For simplicity, I will do that too.

Please continue: https://ubuntu.com/tutorials/install-and-configure-apache#4-setting-up-the-virtualhost-configuration-file

Just follow along and make the changes. This is not the part we will be discussing as it is all laid out very plainly.

As you can see, I am shadowing to make sure the tutorial still works.

And of course it did not work. You see it’s DNS, it’s always DNS…. XD

So to make the final step work, you will need to add an entry to your hosts file.

So:

sudo nano /etc/hosts -and add an address

I made mine 127.0.0.5

Save it and type

gci.example.com

into your browser and voila!

We also have Nginx, as an alternative to Apache.

Before we go on to installing Nginx, let’s talk about Apache. I looked this up in Wikipedia, so not everything may be 100%. The Apache HTTP Server was created by Robert McCool in 1995 and has fallen under under the Apache Software Foundation since 1999.

Because of this popularity, Apache benefits from great documentation and integrated support from other software projects. (It was the most popular server on the internet from at least 1996 through 2016.) That said, it is by no means perfect, so in 2002, Igor Sysoev began work on Nginx, as Apache could not handle more than ten thousand concurrent connections. Nginx was released to the public in 2004, and was able to deliver on serving more than ten thousand concurrent connections. Nginx has since become more popular than Apache, due to its small size and its ability to scale on minimal hardware. We will talk more on this later in this CnC series, I just want you to know the basic difference. (We will get much more in-depth when we talk security) You will also hear people talking about static and dynamic content and file-based and URI-based, but this is beyond our n00b CnC for now.

For those of you who just want to play, you have a web server on your Ubuntu machine now. Now’s a good time to learn basic HTML & CSS.

Let’s move over to Nginx.

OK let’s not, I will go over my space in the magazine, but we will continue in the next issue.

[Editors note: see all this blank space? Don't believe him. He's slacking. Nah, just kidding.]

issue194/c_c.1688186739.txt.gz · Dernière modification : 2023/07/01 06:45 de d52fr