Nginx Access forbidden by rule
-
Hi,
I am trying to access myapp.test but it always shows me a blank page. I am using Nginx and the error logs show following:
2020/01/08 13:24:18 [error] 40168#43112: *104 access forbidden by rule, client: 192.168.3.38, server: localhost, request: "GET / HTTP/1.1", host: "192.168.3.15"
2020/01/08 13:29:10 [error] 40168#43112: *105 access forbidden by rule, client: 192.168.3.22, server: localhost, request: "GET / HTTP/1.1", host: "192.168.3.15"
So somehow it is blocked. What I do not understand is why 2 different IPs show, shouldn't it be only one?
My current local ip is 192.168.3.15 where does the 192.168.3.22 come from.This is how my current nginx.conf file looks like:
`#user nobody;
worker_processes 1;#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;#pid logs/nginx.pid;
events {
worker_connections 1024;
}http {
include mime.types;
default_type application/octet-stream;#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; include "F:/laragon/etc/nginx/php_upstream.conf"; include "F:/laragon/etc/nginx/sites-enabled/*.conf"; client_max_body_size 2000M; server_names_hash_bucket_size 128;
}