#Unix Toolbox
##Unix Toolbox revision 14.4
Error reports and comments are m
#Unix Toolbox
##Unix Toolbox revision 14.4
Apache configuration file (.htaccess) .htaccess files are an overhead, this logic should be in your Apache config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
Techniques in here adapted from all over, including: html5boilerplate: html5boilerplate.com Kroc Camen: camendesign.com/.htaccesss perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ Useful htaccess tricks & tips: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips
This is a basic collection of things I do when setting up a new headless ubuntu machine as a webserver. Following the steps below should give you a reasonable secure server with HTTP/2 support (including ALPN in chrome) and the fast NGINX server. I am happy to add things so leave a comment.
After creating the server (droplet on DigitalOcean) log in with
<style id="jsbin-css"> | |
#DIV_1 { | |
color: rgb(51, 51, 51); | |
height: 1567px; | |
max-width: 750px; | |
width: 724px; | |
column-rule-color: rgb(51, 51, 51); | |
perspective-origin: 362px 783.5px; | |
transform-origin: 362px 783.5px; | |
border: 0px none rgb(51, 51, 51); |
#!/bin/bash | |
find /var/www/public -type d -exec chmod 755 {} + | |
find /var/www/public -type f -exec chmod 644 {} + | |
chown -R www-data:www-data /var/www/public |