Hello Directadmin,
I purchased two days ago a VServer to setup a Reverse Proxy (nginx) on the Server. I want to protect my Backend Server (Dedicated Server).
Everything is working, except the Domain is not forwarding to the right folder. The VServer is forwarding to the Backend Server.
I changed via A records the IP Address for one of my domains. After im gonna Visit the Domain, i get this "Apache is functioning normally" instead of the Content.
These are my configs for nginx.
default
proxy
I wrote an Email to the Directadmin Support, and got this as answer. But still, i dont know how to fix it. Can someone try to help me? Thank you.
I purchased two days ago a VServer to setup a Reverse Proxy (nginx) on the Server. I want to protect my Backend Server (Dedicated Server).
Everything is working, except the Domain is not forwarding to the right folder. The VServer is forwarding to the Backend Server.
I changed via A records the IP Address for one of my domains. After im gonna Visit the Domain, i get this "Apache is functioning normally" instead of the Content.
These are my configs for nginx.
default
server
{
listen 80;
server_name .localhost;
error_log /dev/null;
access_log /dev/null;
location /
{
proxy_pass http://37.221.163.218/;
proxy_redirect default;
}
}
proxy
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
I wrote an Email to the Directadmin Support, and got this as answer. But still, i dont know how to fix it. Can someone try to help me? Thank you.