I have installed two things :
A wi-fi access point through this tutorial:
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point
And an Apache server from this tutorial:
https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md
Now, from my phone for example, I can freely connect to my wi-fi access point and then access the Apache server using the address 192.168.42.1
.
But I do not know how to assign a hostname, so that I can access my Apache server using a link like
http://my-raspberry-pi
instead of
http://192.168.42.1