Questions tagged [nginx-config]
2020 questions
2
votes
0 answers
Ghost installed on subdirectory with digital ocean droplet
I have purchased a ghost droplet $6 on digital ocean. I have a website that i.e., jointero.org. I wanted to setup ghost on my subdirectory that is /blog. I configured ghost on the droplet with the config url = https://www.jointero.org/blog. and on…

Adeel Faridi
- 41
- 4
2
votes
1 answer
Can't access added headers using NGINX auth_request_set
I'm using auth_request along with a proxy cache. The caching itself seems to be working, but I wanted to add an extra layer of visibility by adding a header to the final request with the auth request cache status using $upstream_cache_status in the…

Lewis
- 1,453
- 1
- 12
- 13
2
votes
1 answer
How to configure CSP in nginx using nonce approach in angular?
I am developing angular web app. I have implemented CSP(Content Security Policy) with nonce approach using this link- https://dev.to/ferdiesletering/how-to-implement-an-inline-styles-content-security-policy-with-angular-and-nginx-2ke2. Every thing…

sachin
- 153
- 4
- 18
2
votes
1 answer
Convert .htaccess to Nginx Directives
My website was working fine with Apache .htaccess rules. Now I have sifted it to nginx. I need help to convert following apache rules to nginx directives/configurations
Apache .htaccess rules
RewriteEngine on
RewriteBase…

Farukh Zahoor
- 157
- 12
2
votes
2 answers
nginx configuration file : server, server_name and upstream understanding
I have this nginx.conf configuration file inherited from a github project and i'd like some people to explain me what is doing what:
upstream hello_django {
server web:8000;
}
server {
listen 80;
server_name…
user18961899
2
votes
0 answers
certbot modifies the default nginx config
I am following a mini-tutorial to install letsencrypt certificates. OS is ubuntu 22.04.
I had already installed nginx, and my own example.com config file to /etc/nginx/sites-available
/etc/nginx/sites-available/example.com
I left the…

EastsideDev
- 6,257
- 9
- 59
- 116
2
votes
2 answers
How do I redirect an address to another docker container using the nginx?
Im trying to redirect to docker containers using nginx but when accessing my server from an 'external pc'(host and other vagrant machines) the address doesn't resolve. I have passed 'host.docker.internal:172.17.0.1' to the containers host file but…

itsOnly1_Jah
- 221
- 1
- 3
- 10
2
votes
1 answer
method not allowed 405 error in nginx server
Our react application is working properly in our local machine. but we deplayed it into higher environement it is not working.
it sends 405 Method not allowed error. pages are getting loaded. whenever we request submit form this issue comes.
Below…

Shruti sharma
- 199
- 6
- 21
- 67
2
votes
0 answers
Set constant variable inside server block in nginx
I am creating a server block configuration in Nginx
Below is the syntax:
server {
server_name example.com www.example.com;
root /var/www/html/example.com/html;
access_log /var/log/http/example.com.access;
error_log…

Ahmed
- 25
- 7
2
votes
2 answers
how to install Nginx on CentOs7 without internet connection with root permission?
I need to install Nginx on my target which there is no internet connection, how can I install Nginx with all dependencies in an offline mode?? thanks in advance for your answers.

toobaa sh
- 23
- 1
- 4
2
votes
0 answers
Chome doesn't work for localhost but firefox does
I have a issue where my webserver is nginx and i'm using firefox as my web browser. I have it pointing to my localhost and everything is working fine. It pulls up the website no problem. I decided to download chrome and also give it a try since I…

Shawn
- 1,175
- 2
- 11
- 20
2
votes
0 answers
React PWA not working on production on nginx server
Getting following error when deploying React app with service worker on nginx server with docker, the error cause service worker to be status: redundant
Here is my docker config
ARG ENV
WORKDIR '/app'
COPY . .
RUN ls -la
RUN yarn install
RUN yarn…

Anish kumar Singh
- 21
- 1
2
votes
2 answers
Nginx Php-fpm 7.3 Can't read PHP files from a particular folder
We have a Magento 2 website. For some reason our Nginx/PHP-FPM is unable to read files from MAGEROOT/pub/ folder other than index.php.
We are getting the following error in Nginx Log "Unable to open primary script:…

user3106759
- 438
- 3
- 15
2
votes
1 answer
How do you implement basic nginx rate limiting?
I am trying to test a basic nginx rate limiting setup for an API built with Nodejs and deployed on a DigitalOcean droplet.
I am expecting a 503 error to be returned when a client makes more than 1 request per minute(a low limit for testing). At the…

eest
- 65
- 3
- 9
2
votes
1 answer
nginx to serve static file but instead when i go to the route it downloads the .html
I am trying to serve a health status page for a particular route in my nginx configuration.
I have a docker file that copies the html into the correct location and have confirmed it was there.
But when I navigate to the route /en/health then i do…

RyanP13
- 7,413
- 27
- 96
- 166