stamster
  • Member for 5 years, 9 months
  • Last seen more than 1 year ago
  • Belgrade
How to determine number of open sockets? VM Resource Issues
4 votes

To watch live MySQL opened connections through UNIX socket, run (as root): watch -n1 'netstat -np | grep -i mysqld'

View answer
In Nginx, how can I rewrite all http requests to https while maintaining sub-domain?
4 votes

I managed to do it like this: server { listen 80; listen 443 ssl; server_name domain.tld www.domain.tld; # global HTTP handler if ($scheme = http) { return 301 https://www.domain.tld$...

View answer
How to force or redirect to SSL in nginx?
0 votes

I think this is the most simple solution. Forces both non-HTTPS and non-WWW traffic to HTTPS and www only. server { listen 80; listen 443 ssl; server_name domain.tld www.domain.tld; ...

View answer