In this project, I learned how web servers work and began using one. I was
provided with a personal server by ALX School. I learned how to use scp
and puppet to transfer files to my server. Additionally, I completed a basic
configuration of the server using Nginx.
The server is accessible at ________________________________________________________--
-
0. Transfer a file to your server
- 0-transfer_file: Bash script that transfers a file from Holberton's client to a server.
- Accepts four arguments:
- The path of the file to be transferred.
- The IP of the server to transfer the file to.
- The username that
scpconnects with. - The path of the SSH private key that
scpuses.
scptransfers the file to the user home directory~/.
-
1. Install Nginx web server
- 1-install_nginx_web_server: Bash script that configures a new Ubuntu machine with Nginx.
- Nginx listens on port 80.
- When querying Nginx at its root
/with acurlGET request, it returns a page containing the stringHolberton School.
-
2. Setup a domain name
- 2-setup_a_domain_name: A text file containing the domain name set up for the server through Gandi.
-
3. Redirection
- 3-redirection: Bash script that configures a new Ubuntu machine with Nginx.
- Setup is identical to 1-install_nginx_web_server
plus:
- The location
/redirect_mereturns a301 Moved Permanentlyredirection to another page.
- The location
-
4. Not found page 404
- 4-not_found_page_404: Bash script that configures a new Ubuntu machine with Nginx.
- Setup is identical to 1-install_nginx_web_server
plus:
- Features a custom 404 page containing the string
Ceci n'est pas une page.
- Features a custom 404 page containing the string