Update 'README.md'
This commit is contained in:
31
README.md
31
README.md
@@ -3,34 +3,3 @@ https://github.com/TimVNL/debian-setup-scripts
|
|||||||
https://serverfault.com/questions/527630/what-is-the-different-usages-for-sites-available-vs-the-conf-d-directory-for-ngi
|
https://serverfault.com/questions/527630/what-is-the-different-usages-for-sites-available-vs-the-conf-d-directory-for-ngi
|
||||||
|
|
||||||
https://gist.github.com/TimVNL/b22cbdeea4b6f438ae5e90f75afed838
|
https://gist.github.com/TimVNL/b22cbdeea4b6f438ae5e90f75afed838
|
||||||
|
|
||||||
Werkend NGINX server block voor de reverse proxy:
|
|
||||||
|
|
||||||
```
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
|
|
||||||
root /var/www/vps.ictmaatwerk.com/html;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
|
|
||||||
server_name vps.ictmaatwerk.com www.vps.ictmaatwerk.com;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
if (!-f $request_filename) {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
proxy_pass http://127.0.0.1:8080;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)(\\n|\?ver=[0-9.])$ {
|
|
||||||
return 200;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user