start new:
tmux
start new with session name:
tmux new -s myname
server { | |
server_name domain.tld www.domain.tld; | |
root /var/www/project/web; | |
location / { | |
# try to serve file directly, fallback to app.php | |
try_files $uri /app.php$is_args$args; | |
} | |
location ~ ^/(app|app_dev|config)\.php(/|$) { |
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
netstat -anp | grep -w <PORT> | grep ESTABLISHED | wc -l
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz'
server {
root /www/data;
location / {
}
location /images/ {
}
location /some/path/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8000;
}
location ~* \.(jpg|jpeg|gif|png|svg|css|js|ico|xml|ttf|otf|woff)$ {
access_log off;
log_not_found off;
}