LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

419 solutions found in server-admin

Page 3 of 21
0 votes
1 ans
3 views
Tuning nginx worker_process to obtain 100k hits per min

We have a server that is serving one html file. Right now the server has 2 CPUs and 2GB of ram. From blitz.io, we are getting about 12k connections per minut...

server-admin Solved
AB
asked 1 month ago by ablemike
0 votes
1 ans
3 views
nginx - read custom header from upstream server

I am using nginx as a reverse proxy and trying to read a custom header from the response of an upstream server (Apache) without success. The Apache response is...

server-admin Solved
LU
asked 1 month ago by luis
0 votes
1 ans
3 views
dump conf from running nginx process

Is it possible to get which conf the nginx is using only from a running nginx process? To get the conf file path. sometimes `ps aux` reveal it, sometimes it...

server-admin Solved
ES
asked 1 month ago by est
0 votes
1 ans
3 views
Guide on how to use regex in Nginx location block section?

**Nginx regex location syntaxe** Regex expressions can be used with Nginx location block section, this is implemented with the PCRE engine. What does exac...

server-admin Solved
IN
asked 1 month ago by intika
0 votes
1 ans
3 views
How to preserve request url with nginx proxy_pass

I was trying to use [Thin][1] app server and had one issue. When nginx [proxies][2] the request to Thin (or Unicorn) using `proxy_pass http://my_app_upstream...

server-admin Solved
DM
asked 1 month ago by Dmytrii Nagirniak
0 votes
1 ans
3 views
Docker Network Nginx Resolver

I am trying to get rid of deprecated Docker links in my configuration. What's left is getting rid of those `Bad Gateway` nginx reverse proxy errors when I r...

server-admin Solved
BL
asked 1 month ago by blacklabelops
0 votes
1 ans
3 views
Nginx causes 301 redirect if there's no trailing slash

I'm running nginx in a Virtual Machine using NAT and I'm having redirection issues when I access it from the host machine. ### Works as expected - `...

server-admin Solved
TH
asked 1 month ago by That Brazilian Guy
0 votes
1 ans
3 views
Why do HTTP servers forbid underscores in HTTP header names

I had a problem with a custom HTTP `SESSION_ID` header not being transfered by nginx proxy. I was told that underscores are prohibited according to the HTTP...

server-admin Solved
WH
asked 1 month ago by white
0 votes
1 ans
3 views
What are the benefits of using Nginx in front of a webserver for Go?

I am writing some webservices returning JSON data, which have lots of users. What are the benefits of using Nginx in front my server compared to just using t...

server-admin Solved
DA
asked 1 month ago by Daniele B
0 votes
1 ans
3 views
Use nginx to serve static files from subdirectories of a given directory

I have several sets of static `.html` files on my server, and I would like use nginx to serve them directly. For example, nginx should serve an URI of the follo...

server-admin Solved
ML
asked 1 month ago by MLister
0 votes
1 ans
3 views
What language are nginx conf files?

I want to write some more complex conditions in my Nginx configuration files but I'm not sure of the syntax and can't find docs describing what you can...

server-admin Solved
JP
asked 1 month ago by JP Silvashy
0 votes
1 ans
3 views
What does force_ssl do in Rails?

In a previous [question][1] I found out that I should be setting nginx ssl termination and not having Rails process encrypted data. Then why does the followi...

server-admin Solved
US
asked 1 month ago by user782220
0 votes
1 ans
3 views
react.js application showing 404 not found in nginx server

I uploaded react.js application to a server. I'm using nginx server. Application is working fine. But when I go to another page & refresh, the site is n...

server-admin Solved
SU
asked 1 month ago by Sunil tc
0 votes
1 ans
3 views
nginx: [emerg] "http" directive is not allowed here in /etc/nginx/sites-enabled/default:1

I'm new to NGINX and I'm trying to setup minimal working thing. So I trying to run aiohttp mini-app with nginx and supervisor (by [this][1] example). Bu...

server-admin Solved
PA
asked 1 month ago by Paul
0 votes
1 ans
3 views
PHP - how to best determine if the current invocation is from CLI or web server?

I need to determine whether the current invocation of PHP is from the command line (CLI) or from the web server (in my case, Apache with mod_php). Any recomm...

server-admin Solved
SH
asked 1 month ago by Shameem
0 votes
1 ans
3 views
Force SSL/https using .htaccess and mod_rewrite

How can I force to SSL/https using .htaccess and mod_rewrite page specific in PHP.

server-admin Solved
SA
asked 1 month ago by Sanjay Shah
0 votes
1 ans
3 views
PHP - Move a file into a different folder on the server

I need to allow users on my website to delete their images off the server after they have uploaded them if they no longer want them. I was previously using the...

server-admin Solved
OD
asked 1 month ago by odd_duck
0 votes
1 ans
3 views
Switch php versions on commandline ubuntu 16.04

I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can do a2enmod php5.6 #to enable php5 a2enmod...

server-admin Solved
SA
asked 1 month ago by salimsaid
0 votes
1 ans
3 views
How to save an HTML5 Canvas as an image on a server?

I'm working on a generative art project where I would like to allow users to save the resulting images from an algorithm. The general idea is: * Create a...

server-admin Solved
NA
asked 1 month ago by nathan lachenmyer
0 votes
1 ans
3 views
How to save a PNG image server-side, from a base64 data URI

I'm using Nihilogic's "Canvas2Image" JavaScript tool to convert canvas drawings to PNG images. What I need now is to turn those base64 strin...

server-admin Solved
AN
asked 1 month ago by Andrei Oniga