-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web debugging
- Loading branch information
Showing
7 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
# Script that installs Nginx server and redirects /redirect_me | ||
|
||
# Check if Nginx is already installed | ||
if ! command -v nginx &> /dev/null; then | ||
sudo apt-get update | ||
sudo apt-get install -y nginx | ||
fi | ||
sudo ufw allow 'Nginx HTTP' | ||
echo "Hello World!" | sudo tee /var/www/html/index.html | ||
|
||
echo "server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
root /var/www/html; | ||
index index.html; | ||
location /redirect_me { | ||
return 301 https://github.com/the1Riddle; | ||
} | ||
}" > default | ||
|
||
sudo service nginx restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
# sets up a new 404 error page that contains | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y nginx | ||
sudo ufw allow 'Nginx HTTP' | ||
echo "Hello World!" | sudo tee /var/www/html/index.html | ||
#page info | ||
echo "Ceci n'est pas une page" > 404.html | ||
sudo mv 404.html /var/www/html | ||
echo "server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
root /var/www/html; | ||
index index.html; | ||
location /redirect_me { | ||
return 301 https://github.com/the1Riddle; | ||
} | ||
error_page 404 /404.html; | ||
location = /404.html{ | ||
internal; | ||
} | ||
}" > default | ||
|
||
sudo mv -f default /etc/nginx/sites-available/default | ||
sudo service nginx restart |
Empty file.
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions
10
...hat_happens_when_your_type_google_com_in_your_browser_and_press_enter/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# What happens when you search google.com on your Browser | ||
|
||
Background Context | ||
------------------ | ||
|
||
Being a Full-Stack Software Engineer means you’re comfortable interacting with any layer of the stack. | ||
<br> | ||
A way to easily assess this is to simply ask an engineer to explain how a software system works. They can have a general overview of the flow or can choose to dig deep in a certain area. | ||
|
||
 |