All Questions
Tagged with amazon-web-services nginx
252
questions
0
votes
0
answers
61
views
Nginx: Not loading wordpress repo on EC2 instance - Getting 'This site can't be reached'
I've been trawling through forums trying to figure out why nginx won't point to my wordpress repo and loads the page 'This site can't be reached'. I followed the steps in this guide https://medium.com/...
0
votes
0
answers
55
views
NGINX + Django + UBUNTU + GUNICORN + AWS + ROUTE53 = Default NGINX Page and not my Website
Right, I have a Django powered website which I am now ready to deploy into production. Except it keeps coming back with the default NGINX page - which I knew about already.
The tutorial is as follows, ...
0
votes
1
answer
112
views
AWS SSL Certificate for Laravel on EC2 instance
I have Laravel application on EC2 instance on Ubuntu, also I have Application Load Balancer and verified AWS SSL certificate. But logically I can’t run Laravel without, NGINX or Apache.
I can adjust ...
0
votes
0
answers
158
views
AWS ALB: Are Sticky Sessions possible with TCP?
I need to load-balance my clients. Some of these clients use TCP/TLS, the rest HTTP/HTTPS.
The target services of the load balancer can be in either EC2 instances or ECS containers.
Also, the clients ...
0
votes
0
answers
136
views
Intermittent Nginx SSL handshake error
I have an Ubuntu server running nginx that forwards requests to a AWS elastic beanstalk environment running an API (partial migration, work in progress).
I am seeing intermittent SSL handshake issues ...
0
votes
1
answer
160
views
How can I keep track of nginx restarts and reloads?
I have an nginx reverse-proxy on a ubuntu server in AWS. How can I see when it's configurations were reloaded, either via CLI or otherwise, and when it was restarted altogether?
If it doesn't record ...
0
votes
2
answers
201
views
Nginx Failed to load resource: the server responded with a status of 443
This store using WooCommerce has been set up for years. Today I got the complain from customers about this error. I checked it and found out that the css/js/images couldn't be loaded. Does anyone know ...
0
votes
1
answer
97
views
Trying to run Security Onion on AWS behind an ALB (nginx behind ALB)
I've got a wildcard certificate for internal services. I'd like to run Security Onion behind an ALB so I can get valid SSL with a single certificate stored in certificate manager. (Storing it there is ...
0
votes
0
answers
210
views
Utilising AWS Cloudfront for domain which listens on non-443 port
We have a www.domain.com which resolves to a AWS Load Balancer backed by AWS EC2 Nginx instance.
www.domain.com:8888 proxies to a AWS backend web application.
www.domain.com:443 serves static html ...
0
votes
0
answers
154
views
Unable to access web server via Cloudflare after configuring EC2 security groups
I have an EC2 instance running a web server (NGINX), and I'm trying to set up authentication via Cloudflare. Here's what I've done:
Added a security group to the EC2 instances with an inbound rule ...
0
votes
1
answer
792
views
Using Nginx reverse proxy with CloudFront
We have a domain served by CloudFront and now we need to add a reverse proxy using Nginx (unfortunately the reverse proxying capabilities of CloudFront are insufficient for our use case).
My question ...
0
votes
0
answers
6k
views
Nginx upstream block host not found
I'm running a nginx container where it maps to another backend container. When I tried adding upstream block in nginx.conf which is like
upstream backend_servers {
server backend:8000;
}
The ...
1
vote
0
answers
78
views
Cloudfront Origin Domain Name - should you include www
My nginx server is setup so that all URLs example.com/url are forwarded to www.example.com/url
In the cloudfront origin domain when I create the distribution should I enter
example.com or www.example....
0
votes
0
answers
569
views
How can I fix docker networking issues with multiple containers when working locally
So I have a basic docker setup with nginx and php-fpm that gets deployed to AWS ECS:
Dockerfile for nginx
# Install nginx
FROM --platform=linux/amd64 nginx:latest
# Use custom configs
ADD nginx/conf/...
0
votes
1
answer
401
views
How to redirect/block IP access to Nginx
I am hosting a Website on some EC2 Instances behind an Elastic Load Balancer. The Website can be reached via the public IP of the Load Balancer. This public IP is changing frequently so I have to ...
0
votes
0
answers
448
views
Issue with Nginx Url Rewrite /Redirect
For new site config I tried NGINX rewriting for the blog plan and keep the paths the same, just redirect from 'www.' to 'blog.'.
and plan for RSpace API and CME have been configured and the ALB.
www....
0
votes
1
answer
539
views
My website is working when https://www.example.com but not when https://example.com
I have purchased the domain from Godaddy.
My website is working when
https://www.example.com
example.com
www.example.com
Not working when
https://example.com
I want to know where I need to add ...
-1
votes
2
answers
451
views
DNS shows wrong IP addresses on different machines
I have a very weird problem when I try to resolve my domain ( wiki.stroeersocialpublishing.de ) with a static IP.
On some machines the DNS shows the correct IP ( 99.81.177.226 ) and on other machines ...
0
votes
1
answer
3k
views
AWS Elastic Beanstalk 504 Gateway Time-out - occasionally failing to connect to target
I have a fairly simple AWS Elastic Beanstalk setup (Rails on Puma, with NGINX) and get intermittent but quite regular 504 Gateway Time-out on the client (typically 10 seconds after making the request)....
0
votes
0
answers
785
views
Nginx revers proxy getting timeout error issue
I have an AWS elb loadbalancer with three dynamic IPs and domain- example.com, port 443.
our client wants to access API but he had outbound firewall rules which required to whitelist dynamic IPs every ...
0
votes
0
answers
806
views
Nginx 502 Issue with the API & php-fpm
I've configured the new dev machine but can't get nginx working with the API as it is supposed to.
The current error is that 'curl localhost/api' returns a 502.
Host:
Nginx
PHP 8.1.x, php-fpm
...
0
votes
0
answers
12
views
Does proxypass put a toll on network traffic for streamable sources?
First of all I have never tried it and it may not be possible, but I do imagine a case when things like AWS S3 services offers files on their "buckets", and some part of security procedure ...
0
votes
0
answers
456
views
Pm2 and Nginx wont communicate and SSL handshake failed
Hello I am fairly new to ubuntu and pm2 and Nginx but have been having this inconsistent problem for a few days and have no clue how to fix it as google doesn't tell me anything. Keep it me it used to ...
0
votes
0
answers
48
views
Apache limits errors when scalling with many domains for Saas app
**Hello everybody ,
I making SaaS app like Shopify and ecwid ,
user create store within 10 mins , once he register he get automatic subdomain with SSL and can add products and payment methods, ...
0
votes
1
answer
892
views
Acessing my site using www is not working using AWS Route 53 and NGINX
My site is up and running and can be found on the Internet by typing [domain].com address in the browser.
When I try to access it using www.[domain].com, it return an error (not found).
I'm using ...
0
votes
1
answer
7k
views
nginx.service: Failed at step EXEC spawning /usr/sbin/nginx: No such file or directory
Hello anyone can help?
I was running aws ligthsail using Nginx Instance. Everything is fine. when i configure vhosts.conf
and other conf.
when i sudo nginx -t
error is this:
nginx: [emerg] "...
0
votes
2
answers
2k
views
Redirect domain root to CloudFront with nginx?
Note - I see several other questions asking about redirecting to the root of their S3 static websites, but I didn't see anything about redirecting from the root of a domain name to a CloudFront/S3 ...
1
vote
0
answers
611
views
www subdomain not working on AWS
I am hosting this site https://whitewaterwriters.com/ on an AWS instance.
I'd like the url https://www.whitewaterwriters.com/ to work as well, but it doesn't.
I understand that this happens in a '...
0
votes
1
answer
1k
views
Why is Route53 registered domain not able resolve EC2 IP while I can access the IP without domain?
This is what I have right now:
A domain which is registered with Route53. This domain resides with Route53 only.
An nginx listening on port 80 which is then running on EC2 instance.
I can view the ...
1
vote
1
answer
4k
views
How to get NGINX working on AWS EC2?
I have an AWS EC2 instance running Ubuntu.
I have followed this guide to install NGINX;
sudo apt update
sudo apt install nginx
Apparently after installing it, I should have everything I need and ...
0
votes
0
answers
874
views
400 Bad Request errors (infrequent) on public Amazon S3 assets
We are hosting S3 public assets (images) under a local path using a reverse proxy from NGINX to S3.
We have noticed periodic errors in our logs (400 errors) which are very infrequent, but are causing ...
0
votes
1
answer
3k
views
AWS EC2 instance behind AWS ELB cannot get the real client's IP address
I am very new with nginx setting. My API application running in an EC2 instance which is automatically created by my AWS Elastic Beanstalk environment.
The application ues Nginx and the instance is ...
-1
votes
1
answer
549
views
AWS network-acl blocking nginx dns resolution
I'm trying to lock down ports on my subnets, and am having a problem with an nginx instance that I'm running on ECS.
Traffic comes into the system on :443 to an ELB, which routes some of it to an ...
0
votes
1
answer
2k
views
NGINX Reverse Proxy configuration with AWS Signature
I am using nginx as a reverse proxy for my gateway. It is working with normal apis. However, its not working with AWS Signature. Says signature mismatch. I added proxy host , still it doesnt work. Pls ...
2
votes
1
answer
2k
views
Disable nginx version in Server header on AWS Elastic Beanstalk
I want to disable the default nginx behaviour where it adds a Server header including the nginx version: nginx/1.18.0. I'm fine if it just says nginx.
From what I can find, I can do that by adding set ...
0
votes
0
answers
105
views
Using a Let's Encrypt SSL certificate for my AWS Server
I have a website at www.example.com that's using a Let's Encrypt wildcard certificate. It works great.
I also have a webapp that's running under Tomcat on an AWS EC2 instance. It runs at webapps....
2
votes
1
answer
1k
views
Instance created from (working) Lightsail snapshot will not respond to nginx requests
I'm trying to scale up a Lightsail instance. It's a basic Wordpress site on an Amazon Linux 2 AMI running nginx and mariadb. It's using a static IP. Works fine.
When I create a snapshot of it, use it ...
0
votes
1
answer
2k
views
EC2: Relatively small network out spikes cause 100% CPU usage
Background
Hello,
I have a server I'm running on a free EC2 instance. I'm using nginx and passenger/rails as my web server and application server.
The server receives little traffic (still in ...
0
votes
1
answer
263
views
redirect on amazon-linux 2 with nginx
It is my first time setting up my own server to host a basic static website. I am using an Amazon Linux 2 VM with nginx/1.18.0. My website is currently up and my files are stored on the following ...
0
votes
1
answer
88
views
What is a dispatcher?
I have a wordpress site that was running slow so I signed up for stackify to get a performance profile of server. I dont get the same slow down on baremetal and localhost running the same site. This ...
0
votes
0
answers
105
views
Amazon EC2 instance unexpectedly using CPU and network (not http). How to analyse?
I would like to try and better understand how to analyse the following situation (which is no longer occurring)
CPU pinned at 50% all night (100% of 1 core I suppose) according to Cloudwatch.
...
0
votes
2
answers
777
views
Mariadb not starting on amazon linux
I am new to aws server configuration. I have setup an nginx web server with mariadb database server for my php/laravel web application. My database server was running good for the last few days hence ...
0
votes
1
answer
412
views
How to configure Nginx/Apache to enable HTTPS with EC2 Instance?
I have an EC2 instance set up with a load balancer with the following security group rules
and a load balancer that forwards requests for http and https, with a certificate generated by AWS ...
0
votes
2
answers
387
views
NGINX force HTTPS except for some user agents on AWS Elastic Beanstalk
I have a partial NGINX config file that gets pulled into a main NGINX config file automatically by AWS Elastic Beanstalk. I have two instances running, one EC2 web server running PHP and another that'...
1
vote
0
answers
2k
views
Nginx responding with 429s but I don't have it configured in my config
I'm hosting a rails app on AWS elastic beanstalk and am noticing my nginx server returning 429s in the nginx log. The problem is, I'm not seeing where the limit_req is being defined so I'm struggling ...
0
votes
1
answer
924
views
Should I use nginx or route53 for redirect?
What should I use for subdomain redirection? I want to create
webmail.mywebsite.com and then redirect it to gmail.com
I try to do that with nginx
server {
server_name webmail.mywebsite.com
301 ...
1
vote
0
answers
352
views
Correct reverse proxy to aws-es-proxy instance?
I installed a VPC with an Elasticsearch cluster with kibana on AWS.
As that is VPC, it is not accessible publicly.
Thus, to be able to access the kibana interface, I installed the https://github.com/...
0
votes
0
answers
985
views
504 gateway timeout - ELB, Nginx, Gunicorn
Helllo guys.
I am unable to download long-running reports. The site is under ELB, nginx and gunicorn as a backend server. In nginx I configured following settings:
proxy_connect_timeout 600s;
...
0
votes
0
answers
68
views
Blocked css/js resources in China
We have some sites that load correctly in Europe/America/etc.
But for users from China they always load unpredictable or don't load.
After debugging with someone from China we figured that main CSS ...
0
votes
1
answer
55
views
Python webserver for mobile app [closed]
I would like to setup a python webserver for my mobile app
It will not serve any media, css, html, etc..
Therefore I thought about gunicorn + python app without nginx, at least for the beginning
The ...