Hello, @iamrobbo!
Here’s my config. Will be very thanxfull for any help, i’m newbe in nginx.
server {
listen 80; ## listen for ipv4; this line is default and implied
root /var/www/mysite;
index index.html index.htm index.php;
# Make site accessible from https://localhost/
server_name mysite.ru www.mysite.ru;
access_log /var/log/nginx/mysite.access.log combined;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
proxy_pass https://127.0.0.1:8080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
proxy_connect_timeout 90;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
#Static content
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|js)$ {
root /var/www/mysite;
}
}