Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx configured but not working

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
hazhayder
Posts: 2
Joined: Thu Jan 07, 2021 12:20 pm

Os: Ubuntu 17x
Web: apache + nginx
Nginx configured but not working
  • Quote

Post by hazhayder » Thu Jan 07, 2021 12:25 pm

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

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/;
    }
}

Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Nginx configured but not working
  • Quote

Post by grayfolk » Thu Jan 07, 2021 1:46 pm

hazhayder wrote: ↑
Thu Jan 07, 2021 12:25 pm
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

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/;
    }
}

First check if your app on 5001 working.
Top

hazhayder
Posts: 2
Joined: Thu Jan 07, 2021 12:20 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx configured but not working
  • Quote

Post by hazhayder » Fri Jan 08, 2021 6:57 pm

grayfolk wrote: ↑
Thu Jan 07, 2021 1:46 pm
hazhayder wrote: ↑
Thu Jan 07, 2021 12:25 pm
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

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/;
    }
}

First check if your app on 5001 working.
It's working absolutely fine.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password