This file contains hidden or 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
| <VirtualHost> | |
| ServerAdmin admin@localhost | |
| ServerName localhost | |
| DocumentRoot /var/www/html | |
| ErrorLog /logs/error.log | |
| CustomLog /logs/access.log common | |
| <Directory /var/www/html> | |
| Options Indexes FollowSymLinks | |
| AllowOverride all |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name development.local; | |
| root /usr/share/nginx/html; | |
| index index.php index.html index.htm; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /example.com/public; | |
| add_header X-Frame-Options "SAMEORIGIN"; | |
| add_header X-XSS-Protection "1; mode=block"; | |
| add_header X-Content-Type-Options "nosniff"; | |
| index index.html index.htm index.php; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name slim-api.local; | |
| index index.php; | |
| error_log /var/log/nginx/slim.error.log; | |
| access_log /var/log/nginx/slim.access.log; | |
| root /usr/share/nginx/html/slim/slim3-oauth2/public; | |
| location / { | |
| try_files $uri /index.php$is_args$args; |
This file contains hidden or 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
| echo '>>ADDING GOOGLE NAMESERVER' | |
| echo 'nameserver 8.8.8.8' >> /etc/resolv.conf | |
| yum -y update | |
| yum -y install wget git screen | |
| echo '>>EPEL' | |
| yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Use single quotes instead of double quotes to make it work with special-character passwords | |
| PASSWORD='password1234' | |
| echo ">> Starting Install Script" | |
| # Update | |
| sudo yum -y update | |
| #sudo rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm; |
This file contains hidden or 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
| ################################################################################## | |
| vagrant | |
| ################################################################################## | |
| vagrant up <boxname> | |
| vagrant halt <boxname> | |
| vagrant reload <boxname> | |
| vagrant plugin install vagrant-vbguest | |
| vagrant plugin install vagrant-faster |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.define "web2" do |web2| |
This file contains hidden or 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
| NGINX - DJANGO(PYTHON) | |
| install the ff. per linux distro | |
| REDHAT | |
| openssl openssl-devel | |
| sqlite sqlite-devel |
This file contains hidden or 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
| #!/bin/bash | |
| # -d (date string) is for test purposes only, will be replace by date only on backup server | |
| LDMONTH=$(TZ=MST-24 date +%d) | |
| #LDMONTH=1 | |
| ISMONDAY=$(date +%u) | |
| #ISMONDAY=1 | |
| DAILY=$(date +%A) | |
| #DAILY=Friday |