Server configuration files and bash scripts for managing a virtual host server.
Go to file
Matthew Saunders Brown e8570e1a82 reworked getopts
2021-10-05 11:33:24 -07:00
bin reworked getopts 2021-10-05 11:33:24 -07:00
etc reworked getopts 2021-10-05 11:33:24 -07:00
html make status.php verbose 2021-09-09 10:11:46 -07:00
libexec permissions 2021-08-15 12:58:17 -07:00
install.sh other_vhosts_access.log > access.log 2021-10-02 14:54:19 -07:00
LICENSE initial commit 2021-04-04 13:28:22 -07:00
README.md fixed vmail-stack link 2021-05-06 15:51:32 -07:00
update.sh update.sh 2021-08-15 12:41:47 -07:00

Vhost Stack

Install

cd /usr/local/src/
git clone https://git.stack-source.com/msb/vhost-stack.git
cd vhost-stack
bash install.sh

Apache mod_macro gets configured with a ServerAlias for a subdomain of the domain name of this server. The idea is to have development hostnames that you can use before updating DNS when migrating existing sites. Check the ServerAlias configs in /etc/apache2/mods-available/macro.conf to make sure they are using the domain you wish, and optionally change or comment out the subdomain ServerAlias settings.

Let's Encrypt

For integrated Let's Encrypt certificate configuration install Let's Encrypt Tools: https://git.stack-source.com/msb/letsencrypt-tools

WordPress

If you will be installing WordPress sites then install WordPress Tools: https://git.stack-source.com/msb/wordpress-tools

Mail Server

For an integrated and full featured mail server configuration it's recommended to install vmail-stack: https://git.stack-source.com/msb/vmail-stack If you just want a minimal smtp mail server for getting automated emails (cron, website contact forms, etc.) off the server you can install and configure exim4-daemon-light with these commands:

apt -y install exim4-daemon-light mailutils
sed -i "s|dc_eximconfig_configtype='local'|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
/usr/sbin/update-exim4.conf
systemctl restart exim4