I hereby claim:
- I am stz184 on github.
- I am stz184 (https://keybase.io/stz184) on keybase.
- I have a public key ASAKE13yypByesB4n2mJPSABvif0J1UO1d25NQaT9pVa3wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| daemon off; | |
| error_log stderr; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| # As suggested in http://nginx.org/en/docs/http/websocket.html | |
| map $http_upgrade $connection_upgrade { |
| 1. Stop mysql: | |
| systemctl stop mysqld | |
| 2. Set the mySQL environment option | |
| systemctl set-environment MYSQLD_OPTS="--skip-grant-tables" | |
| 3. Start mysql usig the options you just set | |
| systemctl start mysqld | |
| 4. Login as root |
| server { | |
| listen 80; | |
| server_name "~^(?<sub>.+)\.dev\.raspberry\.pw$"; | |
| if ($sub = "") { | |
| set $sub "raspberry.pw"; | |
| } | |
| index index.html index.htm index.php; | |
| root /var/www/$sub/htdocs; |