Nginx configured but not working
Nginx configured but not working
Hello, I have VestaCP installedon my server with nginx and I want one of my website to served through nginx to an application running on a port.
Now that I see that nginx is perfectly configured but still the website is using apache which it should not. The page shows vesta 403 forbidden page
Now that I see that nginx is perfectly configured but still the website is using apache which it should not. The page shows vesta 403 forbidden page
Code: Select all
server {
listen 80;
server_name aljabbalcorporation.com www.aljabbalcorporation.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:5001/;
}
}
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Nginx configured but not working
First check if your app on 5001 working.hazhayder wrote: ↑Thu Jan 07, 2021 12:25 pmHello, I have VestaCP installedon my server with nginx and I want one of my website to served through nginx to an application running on a port.
Now that I see that nginx is perfectly configured but still the website is using apache which it should not. The page shows vesta 403 forbidden pageCode: Select all
server { listen 80; server_name aljabbalcorporation.com www.aljabbalcorporation.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://localhost:5001/; } }
Re: Nginx configured but not working
It's working absolutely fine.grayfolk wrote: ↑Thu Jan 07, 2021 1:46 pmFirst check if your app on 5001 working.hazhayder wrote: ↑Thu Jan 07, 2021 12:25 pmHello, I have VestaCP installedon my server with nginx and I want one of my website to served through nginx to an application running on a port.
Now that I see that nginx is perfectly configured but still the website is using apache which it should not. The page shows vesta 403 forbidden pageCode: Select all
server { listen 80; server_name aljabbalcorporation.com www.aljabbalcorporation.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://localhost:5001/; } }