This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /tmp/crt && cd /tmp/crt | |
# Wildcard SSL certificate | |
sudo openssl req -subj "/commonName=Local Certificate/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout /server/conf/cert/server.key -out /server/conf/cert/server.crt | |
sudo mkdir /etc/apache2/ssl | |
sudo mv *.key *.crt /etc/apache2/ssl | |
# uncomment on Apache Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install nginx | |
sudo nginx | |
sudo nginx -s stop | |
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf.bak | |
cp /usr/local/etc/nginx/nginx.conf.bak /usr/local/etc/nginx/nginx.conf | |
# add include conf.d/*.conf; on /usr/local/etc/nginx/nginx.conf | |
http { | |
# ... ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bashrc will be loaded per default, so if you have all your stuff in .bash_profile ensure | |
it will be loaded, so you have to add to your .bashrc: | |
if [ -f ~/.bash_profile ]; then | |
. ~/.bash_profile | |
fi | |
-------------------------------------------------- | |
If you are using oh-my-zsh, the default one that will be loaded automatically is ~/.zshrc. |
OlderNewer