Git Product home page Git Product logo

linux-server-configuration's Introduction

linux-server-configuration

Linux (Ubuntu) configuration using Virtual Box, Vagrant, AWS Lightsail, AWS EC2 and many others ...

Although there isn't too much to see, in this example project I could:

  • Configure a virtual machine
  • Configure the Uncomplicated Firewall (UFW) to only allow access to some ports (including SSH)
  • Configure the SSH access
  • Forward the host ports to be accessed by guest ones
  • Manage user access
  • Install some apps like PostgreSQL, Git and Apache

All above steps were done local, in the AWS Lightsail and AWS EC2

Once installed the Apache, procede with the following basic configurations:

  • In order to prevent the Apache Web Server from displaying operation system errors, add the following two lines in /etc/apache2/apache2.conf file. The “ServerTokens Prod” option tells the web server to return only apache and suppress the OS major and minor version. After modifying the configuration file, you have to restart/reload your apache web server to make it effective.
    • ServerSignature Off
    • ServerTokens Prod
  • By default your apache web server will show all the content of the document root directory if it does not have an index file. This feature can be turn off for a specific directory through “options directive” available in the Apache configuration file.
    • Directory /var/www/html Options -Indexes /Directory
  • Configure Virtual Host
    • Create the dirctory structure
      • mkdir -p /var/www/hyalen.us/public_html
    • Create the configuration file for eache one of your VH
      • cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/hyalen.us.conf
    • Active the new VH file
      • a2ensite hyalen.us.conf

This README is just a very simple initial version. The idea is to let documented all was done.

linux-server-configuration's People

Contributors

hyalen-caldeira avatar

Watchers

James Cloos avatar

Forkers

snyamahmoud

linux-server-configuration's Issues

Apache

Configure apache (Virtual Host, security, log, etc)

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.