mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
Configuration for Vagrant running Ubuntu 14.04
This commit is contained in:
parent
f1a48a81f4
commit
a5af773bc8
3 changed files with 38 additions and 48 deletions
|
@ -21,18 +21,13 @@ organizationalUnitName=
|
|||
emailAddress=
|
||||
"
|
||||
sudo mkdir -p "$SSL_DIR"
|
||||
sudo openssl genrsa -out "$SSL_DIR/xip.io.key" 1024
|
||||
sudo openssl genrsa -out "$SSL_DIR/xip.io.key" 4096
|
||||
sudo openssl req -new -subj "$(echo -n "$SUBJ" | tr "\n" "/")" -key "$SSL_DIR/xip.io.key" -out "$SSL_DIR/xip.io.csr" -passin pass:$PASSPHRASE
|
||||
sudo openssl x509 -req -days 365 -in "$SSL_DIR/xip.io.csr" -signkey "$SSL_DIR/xip.io.key" -out "$SSL_DIR/xip.io.crt"
|
||||
|
||||
|
||||
#Install apache2
|
||||
echo ">>> Installing Apache2 webserver"
|
||||
# The package python-software-properties provides add-apt-repository on Ubuntu Precise Server
|
||||
sudo apt-get install python-software-properties
|
||||
sudo add-apt-repository -y ppa:ondrej/apache2
|
||||
sudo apt-key update
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y apache2
|
||||
sudo a2enmod rewrite actions ssl
|
||||
sudo cp /vagrant/util/vagrant_vhost.sh /usr/local/bin/vhost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue