Apache on port 8081, nginx connecting to 8080
-
- Posts: 9
- Joined: Thu Jul 12, 2018 3:09 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Apache on port 8081, nginx connecting to 8080
Hi,
This morning, all my websites are down.
On my server, i have run
And I can see a single entry for apache, suggesting its listening on port 8081:
In my web log / errorlog, i can see many errors like:
(private data replaced with XXXXXXXXXXX)
Where it looks like nginx is connecting to Apache on port 8080, where it is not listening.
How can I make apache listen on port 8080, or niginx connect to apache on port 8081??
Many thanks!
This morning, all my websites are down.
On my server, i have run
Code: Select all
netstat -tulpn
Code: Select all
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 8752/apache2
Code: Select all
connect() failed (111: Connection refused) while connecting to upstream, client: XXXXXXXXXXX, server: XXXXXXXXXXX, request: "GET / HTTP/1.1", upstream: "XXXXXXXXXXX:8080/", host: "XXXXXXXXXXX"
Where it looks like nginx is connecting to Apache on port 8080, where it is not listening.
How can I make apache listen on port 8080, or niginx connect to apache on port 8081??
Many thanks!
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Apache on port 8081, nginx connecting to 8080
Try to rebuild web.[email protected] wrote: ↑Fri Aug 14, 2020 11:32 amHi,
This morning, all my websites are down.
On my server, i have run
And I can see a single entry for apache, suggesting its listening on port 8081:Code: Select all
netstat -tulpn
In my web log / errorlog, i can see many errors like:Code: Select all
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 8752/apache2
(private data replaced with XXXXXXXXXXX)Code: Select all
connect() failed (111: Connection refused) while connecting to upstream, client: XXXXXXXXXXX, server: XXXXXXXXXXX, request: "GET / HTTP/1.1", upstream: "XXXXXXXXXXX:8080/", host: "XXXXXXXXXXX"
Where it looks like nginx is connecting to Apache on port 8080, where it is not listening.
How can I make apache listen on port 8080, or niginx connect to apache on port 8081??
Many thanks!
-
- Posts: 9
- Joined: Thu Jul 12, 2018 3:09 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Apache on port 8081, nginx connecting to 8080
Hi,
Thanks for the help!
I ran
and it seemed to complete OK, but it looks like apache is still listening on 8081, and nginx is trying to connect to 8080
Thanks for the help!
I ran
Code: Select all
for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done
-
- Posts: 9
- Joined: Thu Jul 12, 2018 3:09 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Apache on port 8081, nginx connecting to 8080
Further, I can see that HTTPS requests should be forwarded to apache at port 8443, but it is not listening there either...
Also, my /etc/apache2/ports.conf file is empty (except "# Powered by vesta"). Should there be something here?
Also, my /etc/apache2/ports.conf file is empty (except "# Powered by vesta"). Should there be something here?
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Apache on port 8081, nginx connecting to 8080
See ~/conf/web[email protected] wrote: ↑Fri Aug 14, 2020 5:07 pmFurther, I can see that HTTPS requests should be forwarded to apache at port 8443, but it is not listening there either...
Also, my /etc/apache2/ports.conf file is empty (except "# Powered by vesta"). Should there be something here?
-
- Posts: 9
- Joined: Thu Jul 12, 2018 3:09 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Apache on port 8081, nginx connecting to 8080
Looking in ~/conf/web I can see .conf files with entries like:
And yet apache is not listening on 8080. Do you have any idea how i find out why?
Thanks,
Justin
Code: Select all
<VirtualHost XX.XX.XX.XX:8080>
Thanks,
Justin
-
- Posts: 4
- Joined: Wed May 16, 2018 6:50 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Apache on port 8081, nginx connecting to 8080
I'm having this exact same issue. Was there a found resolution?