1,971 questions
Score of 2
1 answer
140 views
Inject Custom Variable into ngx_http_fastcgi_module at Runtime from a Third-Party Module
I am writing a third-party c NGINX module.
I want to do similar to apache module mod_env:
SetEnv MY_VAR hello
In normal NGINX config this works:
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-...
Best practices
0
votes
3
replies
136
views
I want to make an "HTTPS proxy cache server" with nginx that controls large size of Git source
I'm new to nginx and proxy servers.
We have a problem about googlesource 429 Error, caused by many requests and because of bandwidth, we took a long time to get googlesource.
We reviewed to make AOSP ...
Score of 0
1 answer
61 views
Can't get Nginx to use one module over another
trying to setup NGINX as a forward proxy in my environment. I'm using the https://github.com/chobits/ngx_http_proxy_connect_module as it seems to be what people recommend for handling HTTPS traffic.
I'...
Score of 0
1 answer
57 views
Redirect user to subdirectory in nginx based on cookie set earlier through wordpress
I have two wordpress sites installed under two sub-directories of the same domain. Each site is in a different language. English version example.com/en and Spanish example.com/es
These are served by ...
Score of 0
1 answer
47 views
Redirect of www and http/s help in nginx [closed]
I've been working to understand nginx more from the configuration side. The thing I'm struggling with the most is primary redirect processes. Between handling the https and www redirects, my head is ...
Score of 0
1 answer
134 views
Nginix catch-all domain configuration file serves the default SSL certificate
I am building a domain name management app that handles multiple domain names and serves different landing pages based on the domain name.
I have set up a DNS system that works using PowerDNS, any ...
Score of 0
0 answers
372 views
How to configure Nginx to prompt the user to select a client certificate from OS certificate store (e.g., e-Token on macOS/Windows)?
I'm trying to configure Nginx to require and request a client certificate during HTTPS handshake — specifically in a way that prompts the browser to show the user a selection dialog from the Keychain ...
Score of 0
0 answers
312 views
NGINX cache always returning MISS in browser although its caching
I am trying to learn caching using nginx to cache my NEXT APIs. This is my
nginx.config
worker_processes 1;
events {
worker_connections 1024;
}
http {
proxy_cache_path /tmp/nginx/cache ...
Score of 0
0 answers
35 views
Is VPS a keyword for Nginx conf?
In my Hostinger VPS, I found this in the default pre-configured Nginx, in sites-available :
server{
listen 80;
vps xxxxxx.hstgr.cloud;
The VPS keyword seems to replace the server_name but I ...
Score of 0
1 answer
56 views
SSL certificate for a sub domain showing not secure on a public network
I have multiple NextJs app and some Java backend API services that I deployed on a windows server e.g gigmobilitytest.accionmfb.com, octopustest.accionmfb.com etc. The application are naturally only ...
Score of 0
1 answer
116 views
Nginx reverse proxy setup for redirects
I have an website running in https://localhost:7443/__admin. I have nginx running in the same host in https://localhost:8443.
I want the users to launch the webapp with the url https://localhost:8443/...
Score of 0
0 answers
129 views
Nginx : Invalid condition "yes" in nginx.conf
I have an environment variable set as
vod_enable_encryption = yes
which I'm attempting to check using an If block in nginx.conf.
Nginx isn't able to resolve the condition and throwing the following ...
Score of 0
0 answers
114 views
nginx wont proxy_pass to service on 127.0.0.1:8080 with ssl
I am trying to proxy_pass to a local service (fossil scm) on http://127.0.0.1:8080.
http://scm.domain.de and https://scm.domain.de returns ERR_CONNECTION_REFUSED.
https://scm.domain.de:8080 returns ...
Score of 0
0 answers
58 views
Nginx serves files at root (/) but not at subpaths (/admin, /user)
I have set up Nginx on my server to serve static files for a front-end application. The root URL (http://xxx.85.127.14/) correctly serves files, but when I try to access http://xxx.85.127.14/admin I ...
Score of 0
1 answer
104 views
Nginx DNS Resolver in docker depend on the conditions of the transformation
I want to understand why this happens. When I use proxy_pass without regular expressions, everything works great, the DNS is resolved, and so on.
location /images/ {
proxy_pass http://sfs-...