Questions tagged [nginx-config]
2020 questions
0
votes
1 answer
open() "directory/to/project" failed (13: Permission denied) nginx
I am using the default config with Nginx installed on my manjaro machine. I just added some simple configurations down below.
nginx.conf:
user http;
worker_processes auto;
worker_cpu_affinity auto;
.....
http{
.....
server {
listen …

ersincebi
- 41
- 9
0
votes
1 answer
How to serve a set of files from nginx only if a domain name has a keyword
I have a usecase where a files are grouped and each group can be served for a specific domain name in nginx server. I am not sure how can I acheive that. valid_referer is something which is similar but that works on referer header not on original…

thecodejack
- 12,689
- 10
- 44
- 59
0
votes
0 answers
NGINX why do I get ERR_CERT_COMMON_NAME_INVALID only on one of my domain names?
I have a really weird problem. I own multiple domains let's say example.com, example.pl, example.at, etc. My main domain is example.com, all the rest should be (and mostly are) redirected to example.com for which I own certificate (only for this…

Pepsko
- 63
- 6
0
votes
1 answer
Nginx Forbidden 403
I'm trying to run a moodle application along with nginx but when I access the domain it returns 403.
I've already changed the folder's permissions, the index.php file exists.
Log Nginx:
*306 directory index of "/var/www/html/moodle/" is…

Romulo Ferreira Mesquita
- 27
- 1
- 7
0
votes
0 answers
Django Unable to load static files - internal-nginx-static comes in URL
Hope you are all having a very good Friday!
I am running a django project on nginx, and my project is each time going into this url - https://sitename.com/internal-nginx-static-location_uat/project_name/static/images/success.svg
I didn't configure…

Kashyap Patel
- 13
- 3
0
votes
1 answer
Question about correctly configure static page blog routing in Nginx
I encountered a problem when configuring Nginx routing on a static blog page.
I think I should have made a low-level mistake, but I can’t do anything about it and hope to get help here.
First of all, I have two projects, both of them are static…

Austin Deng
- 23
- 5
0
votes
1 answer
Custom admin link in Ghost causes refuse to connect error
I am using Ghost Version 4+.
I created a custom admin link by customizing my config.production and now I am successfully redirected to my subdomain admin.mysite.com, but the problem is that everything is working fine but it refuses to connect in…
0
votes
1 answer
Installed GHOST on NGINX server and I broke it's ssl config file now NGINX won't restart
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name creationist.codes;
root /var/www/creationist/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
ssl_certificate…
0
votes
0 answers
nginx: I can't access default virtual host on port 80. Instead get response from wrong server_name
I have two sites-enabled for nginx.
I have the default server:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
…

Aron
- 1
0
votes
1 answer
unknown directive "geoip_country" in /etc/nginx/nginx.conf
Trying to Add geoIP to my nginx server, but for some reason it's not quite working and I can't seem to figure out why not.
If i try to add anything related to geoip_country in my config file, I get the error [emerg] unknown directive "geoip_country"…

Michael Nielsen
- 61
- 8
0
votes
1 answer
403 Forbidden, Nginx config
I just started using Django and I try to deploy my project on the digital ocean server using Nginx. I am trying to set up SSL and domain (and they look good through the SSL checker and Google Dig DNS), however I get the 403 error in the browser once…

starship
- 53
- 1
- 6
0
votes
1 answer
Custom error page is not loading in NGINX. Default error page is loaded instead
I have created two custom error pages in nginx server 404.html and 500.html
I was able to load 404.html file without any issues.
But in the place of 500.html, I am getting the default nginx error page (50x.html).
Both the files are in the same…

Captain Buck
- 679
- 1
- 5
- 17
0
votes
1 answer
Put two nginx series
Is there a way to put two NGINX server in series?
In my configuration, I have multiple docker-compose instances of containers, which all run the same web applications. In additions, I have two NGINX. The NGINX1 server is located on my physical…

Carex
- 17
- 5
0
votes
0 answers
NGINX allow ONLY from a certain domain and certain IP (at the same time)
I have searched high and low for an answer to this an for the life of me can't find one, is it even possible?
What I need to do is:
Only allow connection to NGINX from a certain domain, and only allow connections to NGINX from a certain IP
So allow…

Paul Townsend
- 23
- 3
0
votes
1 answer
Nginx reverse proxy to multiple devices maping hostname
Good morning everyone, I have a rather peculiar configuration that I can't run with Nginx.
The webserver is dedicated to this job and is invoked with a descriptive domain based on a location, and consequently it has to do a reverse proxy to the…

Max
- 1
- 1