Skip to content

# script to automatically setup vhost configuration files passed as a argument variable

Notifications You must be signed in to change notification settings

ToRxmrig/setup_apache2_vhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

setup_apache2_vhost

This script automates the setup of Apache2 virtual host configurations. It takes a domain name as an argument and generates the corresponding configuration file in /etc/apache2/sites-available/. The script also handles existing configurations by disabling and removing them before creating new ones.

Features

  • Automatically creates and enables Apache2 virtual host configurations.
  • Handles existing configurations by disabling and removing them.
  • Creates the document root directory and sets appropriate permissions.
  • Provides detailed output of created directories and files.

Prerequisites

  • Apache2 installed on your system.
  • sudo privileges to manage Apache2 configurations.

Usage

  1. Clone the Repository:

    git clone https://github.com/ToRxmrig/setup_apache2_vhost.git
    cd setup_apache2_vhost
    chmod +x setup_apache_vhost.sh
    ./setup_apache_vhost.sh YOURDOMAIN.com
  2. Validate the files:

    script will print the locations for you.

About

# script to automatically setup vhost configuration files passed as a argument variable

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages