SSL Complete Guide 2021: HTTP to HTTPS - Configuring 301 Redirects to HTTPS

SSL Complete Guide 2021: HTTP to HTTPS - Configuring 301 Redirects to HTTPS

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to configure a server to redirect all HTTP and HTTPS requests to a main URL without 'www'. It covers modifying server blocks, adding 301 redirects, and testing the setup using tools like curl and browsers. The tutorial ensures that all requests are correctly redirected to the secure HTTPS version of the site, providing a step-by-step guide to achieve this configuration.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main goal of the URL redirection discussed in the video?

To block all requests coming from unknown sources.

To redirect all requests to a URL with 'www'.

To redirect all requests to a secure URL without 'www'.

To allow access to the website via HTTP only.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which server block modification is necessary for implementing a 301 redirect?

Changing the server name to include 'www'.

Adding a new server block for each URL.

Removing unnecessary location lines and adding redirect instructions.

Increasing the server timeout settings.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What response code indicates a successful redirection?

404 Not Found

200 OK

500 Internal Server Error

301 Moved Permanently

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to restart the server after configuration changes?

nginx start

systemctl restart nginx

nginx reload

service nginx stop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of adding a new server block for HTTPS requests with 'www'?

To block all HTTPS requests.

To allow HTTP requests to bypass security.

To redirect these requests to the main URL without 'www'.

To serve content only for URLs with 'www'.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you verify that the redirection setup is working correctly?

By manually editing the server configuration files.

By using web browsers and online redirect checkers.

By checking the server logs for errors.

By disabling the server and checking the response.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the expected response when accessing the main website over HTTPS without 'www'?

301 Moved Permanently

200 OK

403 Forbidden

404 Not Found