Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, great article.
I was successful configuring nginx as a reverse proxy by following this article, but i use 127.0.0.1 as a value of proxy_pass. I don’t have a static public IP, so i’m using no-ip. Is it possible to make SERVER_ADDR returns my public ip address instead of loopback? How do i configure it and also configure rpaf mod RPAF_ProxyIPs?
Thank you.
I followed all the steps but I’m not able to access http://my_ip:8080/info.php and I want to host only one Wordpress Website, I do not have 4 domains or I think I’m having problem in understanding the guide.
This tutorial doesn’t work if you allowed ubuntu firewall in the initial setup.
I’ve tried sudo ufw enable Apache but that didn’t work…
Only thing that worked for me was disabling the firewall completely (which is ok for me) by sudo ufw disable
Ok, so I have been working on this for awhile now. I got everything up and running, its looking good. The last step, getting the SSL up is giving me an error. One that I missed earlier.
sudo nginx -t gives me: conflicting server name “domain.com” on 0.0.0.0:80, ignored which is not letting me install my SSL. Been at it for awhile, brain hurts. Tried removing extra domains listed in the conf files nothing. It looks like solved most peoples issues, but not sure if they were configuring reverse proxy.
Please help!
If you are following up this instruction, do change
FastCgiExternalServer /usr/lib/cgi-bin/php-fcgi -socket /run/php/php7.2-fpm.sock -pass-header Authorization to FastCgiExternalServer /usr/lib/cgi-bin/php-fcgi -socket /run/php/php7.0-fpm.sock -pass-header Authorization
Hi,
I dont use Apache2.Follow previos tutorial and my Ubuntu 18.04 machine I install nginx and configure the block. I also use certbot and get the SSL certificate from Letsencrypt. But this tutoarial is very very advance for me :)
I am using dart.io aqueduct.io server as middleware for json file. I need to connect to nginx on 443 and use reverse proxy to http:127.0.0.1:8888/. How do I do that?
My aqueduct server on http:127.0.0.1:8888/ is working. my domain on nginix also works. how to connect nginx and dart aqueduct server on ubuntu using the nginx reverse proxy?
nginx:443 https://mydomain.com --------> to aqueductserver http://127.0.0.1:8888/ aqueductserver http://127.0.0.1:8888/ -----------> nginx:443 https://mydomain.com
Help apriciated.
niyazi@niyazi-virtual-machine:~$ sudo netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8888 0.0.0.0: LISTEN 10931/dart ** *
tcp 0 0 127.0.0.1:7001 0.0.0.0: LISTEN 3383/nxnode.bin
tcp 0 0 0.0.0.0:443 0.0.0.0: LISTEN 7896/nginx: master
tcp6 0 0 :::443 :::* LISTEN 7896/nginx: master
tcp6 0 0 :::80 :::* LISTEN 7896/nginx: master
Hi jesin,
I’ve been following these tutorials on Nginx as a reverse proxy for Apache since 2015, so I’ve tried for each Ubuntu version, 14.04, 16.04 and now 18.04.
All have been very good, but each of them has the same problem: in the PhP Variables section, $_SERVER['SERVER_PORT'] is supposed to be 443 and $_SERVER['HTTPS'] must be set to ‘on’. They seem to be wrong. The first one is port 80 and the second is simply not there.
As a matter of fact, all is fine and the websites work flawlesly, so it seems there’s no real problem. Looking at PhP Variables, I can see that $_SERVER['SERVER_SIGNATURE'] is set to <address>Apache/2.4.37 (Ubuntu) Server at foobar.net Port 80</address>, $_SERVER['HTTP_CONNECTION'] is set to close and $_SERVER['HTTP_X_FORWARDED_PROTO'] is set to https.
So it ‘should’ work and it does work, I even got an AA+ SSL qualification for a real domain.
But I just couldn’t get it out of my head, so I tried to know what’s going on. I’ve tried everything, even having Apache with port 8080 and Nginx with only port 443, no port 80 anywhere at all.
Do you know what’s going on? Thanks in advance.
Things are mostly working fine for me on this, except I continue to get a download prompt for the mime-type application/x-httpd-fastphp. I have the mods-enabled/fastcgi.conf file setup, and the fastcgi module is definitely loaded.
The only curious thing I’ve found thus far is that the first path reference here doesn’t contain php-fcgi. I see the socket file at runtime though, so I don’t know what this means.
FastCgiExternalServer /usr/lib/cgi-bin/php-fcgi -socket /run/php/php7.2-fpm.sock -pass-header Authorization
sudo find / -name 'php-fcgi' returns nothing.
Hi, I’ve an issue during installation of fast-cgi:
sudo dpkg -i libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb
Error Code:
(Reading database ... 54149 files and directories currently installed.)
Preparing to unpack libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb ...
Unpacking libapache2-mod-fastcgi (2.4.7~0910052141-1.2) over (2.4.7~0910052141-1.2) ...
Setting up libapache2-mod-fastcgi (2.4.7~0910052141-1.2) ...
dpkg: error processing package libapache2-mod-fastcgi (--install):
installed libapache2-mod-fastcgi package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
libapache2-mod-fastcgi
[Exit 1]
And i can’t browse to “http://your_server_ip:8080/info.php”.
Please can you help me? I have to solve the problem ASAP.
Thanks a lot.