Giter VIP home page Giter VIP logo

linux-web-server-2's Introduction

Linux web server configuration

i. The IP address and SSH port so your server can be accessed by the reviewer.

ii. The complete URL to your hosted web application.

iii. A summary of software you installed and configuration changes made.

  • Apache: apache2
  • Wsgi: libapache2-mod-wsgi-py3
  • Flask: python3-flask
  • SQLAlchemy: python3-sqlalchemy
  • SQLAlchemy support for Flask: python3-flask-sqlalchemy
  • Oath2: python3-oauth2client

These packages can be installed by using the command: sudo apt-get install

iv. Step by step configuration

  • update packakges by sudo apt-get update and sudo apt-get upgrade

  • install required packages (see iii above)

  • create users student and grader. secure access to .ssh and authorized_keys. Create and update ssh keypair. Give student and grader access as sudoer

  • configure ufw firewall, default block all incoming and allow all outgoing, enable required ports (2200, 80, 123, 22 - 22 to be removed later). Update Port 2200 at /etc/ssh/sshd_config. Add Port 2200 in Lightsail. Test connection with new Port 2200. If success, delete Port 22 from ufw, sshd_config, and Lightsail console.

  • create catalog_wsgi files.

    • $ sudo nano /var/www/catalog/catalog.wsgi

    • #!/usr/bin/python3

    • import sys

    • import logging

    • logging.basicConfig(stream=sys.stderr)

    • sys.path.insert(0, "/var/www/catalog/")

    • from project import app as application

    • application.secret_key = 'your_secret_key'

  • create, configure, enable catalog.conf file

    • $ sudo nano /etc/apache2/sites-available/catalog.conf
    • Update server name, WSGIScriptAlias, Director (/var/www/catalog)
  • Link catalog.conf file and restart apache2 server

    • sudo a2ensite catalog.conf
    • sudo service apache2 restart

v. A list of any third-party resources you made use of to complete this project.

linux-web-server-2's People

Contributors

tu-duong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.