mkdir -p /usr/local/etc/nginx/sites-available
File locations:
nginx.confto/usr/local/etc/nginx/defaultanddefault-sslto/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. | |
| # |
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; |