mkdir -p /usr/local/etc/nginx/sites-available
File locations:
nginx.conf
to/usr/local/etc/nginx/
default
anddefault-ssl
to/usr/local/etc/nginx/sites-available
#STOP APACHE
sudo apachectl stop
#!/usr/bin/env python3 | |
# | |
# Automatic Movie Thumbnail Generator | |
# | |
# Scans a folder, and generates a thumbnail image for every movie found. | |
# Uses a grid layout that attempts to maximize utilized space while | |
# fitting under a given maximum image size, and having at least as many | |
# frames as requested. | |
# |
#!/bin/bash | |
#================================================================ | |
# HEADER | |
#================================================================ | |
#% SYNOPSIS | |
#+ ${SCRIPT_NAME} args ... | |
#% | |
#% DESCRIPTION | |
#% A simple script to switch the current PHP version being used. | |
#% used. The switch is reflected system-wide, including in the |
mkdir -p /usr/local/etc/nginx/sites-available
File locations:
nginx.conf
to /usr/local/etc/nginx/
default
and default-ssl
to /usr/local/etc/nginx/sites-available
#STOP APACHE
sudo apachectl stop
server{ | |
listen 80; | |
server_name example.com www.example.com; | |
access_log /var/log/nginx/mysite.access.log; | |
root /myproject/public; | |
index index.php index.htm index.html; | |
gzip on; |