Skip to content

Latest commit

 

History

History
executable file
·
47 lines (38 loc) · 1.91 KB

File metadata and controls

executable file
·
47 lines (38 loc) · 1.91 KB

Web server

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 ________________________________________________________--

Tasks 📃

  • 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 scp connects with.
      • The path of the SSH private key that scp uses.
    • scp transfers 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 a curl GET request, it returns a page containing the string Holberton School.
  • 2. Setup a domain name

  • 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_me returns a 301 Moved Permanently redirection to another page.
  • 4. Not found page 404