LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 2 of 106
0 votes
1 ans
3 views
API gateway vs. reverse proxy

In order to deal with the microservice architecture, it's often used alongside a Reverse Proxy (such as nginx or apache httpd) and for cross cutting concern...

general-dev Solved
US
asked 1 month ago by user1459144
0 votes
1 ans
3 views
Why is nginx responding to any domain name?

I have nginx up and running with a Ruby/Sinatra app and all is well. However, I'm now trying to have a second application running from the same server and I...

server-admin Solved
MA
asked 1 month ago by Martin
0 votes
1 ans
3 views
nginx the "ssl" directive is deprecated, use the "listen ... ssl"

After NGINX upgrade to `v1.15.2` starts getting the warning. `nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" d...

server-admin Solved
SA
asked 1 month ago by sambua
0 votes
1 ans
3 views
How to redirect a URL in Nginx

I need to redirect every http://test.com request to http://www.test.com. How can this be done. In the server block I tried adding rewrite ^/(.*) http...

server-admin Solved
AM
asked 1 month ago by Amal Kumar S
0 votes
1 ans
3 views
Upstream / downstream terminology used backwards? (E.g. nginx)

I've always thought of upstream and downstream along the lines of an actual stream, where the flow of information is like water. So upstream is where water/...

server-admin Solved
CH
asked 1 month ago by ChrisC
0 votes
1 ans
3 views
Prevent nginx 504 Gateway timeout using PHP set_time_limit()

I am getting 504 timeouts message from nginx when my PHP script is running longer than usual. `set_time_limit(0)` does not seem to prevent that! Does it not wor...

server-admin Solved
NY
asked 1 month ago by Nyxynyx
0 votes
1 ans
3 views
duplicate MIME type "text/html"?

I have this in Nginx configuration files gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml appl...

general-dev Solved
ME
asked 1 month ago by Memek Gue Bolong Gan
0 votes
1 ans
3 views
Dealing with nginx 400 "The plain HTTP request was sent to HTTPS port" error

I'm running a Sinatra app behind passenger/nginx. I'm trying to get it to respond to both http and https calls. The problem is, when both are defined in...

server-admin Solved
JO
asked 1 month ago by Johnny
0 votes
1 ans
3 views
Nginx startup prompt [emerg] no "events" section in configuration

In the X-WAF deployment, you need to create a new nginx configuration file. However, when testing the nginx configuration, an error is found and nginx cannot be...

server-admin Solved
DO
asked 1 month ago by Dora
0 votes
1 ans
3 views
nginx- duplicate default server error

In my error log i get > [emerg] 10619#0: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/mysite.com:4 on Line 4 I have: s...

server-admin Solved
YM
asked 1 month ago by Ymn
0 votes
1 ans
3 views
How to add a response header on nginx when using proxy_pass?

I want to add a custom header for the response received from the server behind nginx. While `add_header` works for nginx-processed responses, it does nothing...

server-admin Solved
SO
asked 1 month ago by sorin
0 votes
1 ans
3 views
Nginx upstream prematurely closed connection while reading response header from upstream, for large requests

I am using nginx and node server to serve update requests. I get a gateway timeout when I request an update on large data. I saw this error from the nginx error...

server-admin Solved
DI
asked 1 month ago by Divya Konda
0 votes
1 ans
3 views
What is the point of uWSGI?

I'm looking at the [WSGI specification][1] and I'm trying to figure out how servers like [uWSGI][2] fit into the picture. I understand the point of the...

general-dev Solved
D5
asked 1 month ago by d512
0 votes
1 ans
3 views
How does a Node.js "server" compare with Nginx or Apache servers?

I have been studying Node.js recently and came across some material on writing simple Node.js based servers. For example, the following. var express = re...

server-admin Solved
GR
asked 1 month ago by Grateful
0 votes
1 ans
3 views
Nginx Different Domains on Same IP

I would like to host 2 different domains in the same server using Nginx. I redirected both domains to this host via @ property. Although I configure 2 differen...

server-admin Solved
BE
asked 1 month ago by berkayk
0 votes
1 ans
3 views
Why does Unicorn need to be deployed together with Nginx?

I would like to know the difference between Nginx and Unicorn. As far as I understand, Nginx is a web server while Unicorn is a Ruby HTTP server. Since both...

server-admin Solved
LO
asked 1 month ago by loganathan
0 votes
1 ans
3 views
Terminal error: zsh: permission denied: ./startup.sh

I am running a command ./startup.sh nginx:start and I am getting this error message zsh: permission denied: ./startup.sh why could this...

general-dev Solved
RE
asked 1 month ago by Reacting
0 votes
1 ans
3 views
EventSource / Server-Sent Events through Nginx

On server-side using Sinatra with a `stream` block. get '/stream', :provides => 'text/event-stream' do stream :keep_open do |ou...

server-admin Solved
LU
asked 1 month ago by Lukas Mayer
0 votes
1 ans
3 views
Nginx not picking up site in sites-enabled?

After over 10 hours of research I have not figured out why this doesn't work! I am trying to move my localhost to my sites-enabled folder which is in /etc/n...

server-admin Solved
DI
asked 1 month ago by Discorick
0 votes
1 ans
3 views
How to configure nginx to enable kinda 'file browser' mode?

Once I've seen this before when I type a URL `http://test.com/test/`, instead of give me a html page, it gives me a 'file browser' like interface to...

server-admin Solved
MK
asked 1 month ago by mko