nginx

NginX not executing PHP

僤鯓⒐⒋嵵緔 提交于 2021-02-07 12:19:32
问题 I've been through dozens of potential solutions to this problem but cannot find anything that works. Basically, PHP files are not executing on my NginX + PHP_fpm + Ubuntu 14 server. I have all the packages, and they are running. I've cleared browser cache etc., but nothing has worked yet. I appreciate all the help! As of right now, if I try accessing the PHP file, the GET will return it as an HTML file but will not execute the script. Here is my nginx.conf file: worker_processes 1; worker

Nginx error: client intended to send too large body

落花浮王杯 提交于 2021-02-07 12:01:49
问题 Periodically I get an error: This site can't be reached. The webpage at https://example.com/document might be temporarily down or it my have moved permanently to are new web address. My site is stored on AWS. I use rails + nginx + passenger. Nginx error log: client intended to send too large body: 3729822 bytes, client: 172.42.35.54, server: example.com, request: "POST /document HTTP/1.1", host: "test.example.com", referrer: "https://test.example.com/document/new" app log: ActionController:

Nginx error: client intended to send too large body

老子叫甜甜 提交于 2021-02-07 12:01:10
问题 Periodically I get an error: This site can't be reached. The webpage at https://example.com/document might be temporarily down or it my have moved permanently to are new web address. My site is stored on AWS. I use rails + nginx + passenger. Nginx error log: client intended to send too large body: 3729822 bytes, client: 172.42.35.54, server: example.com, request: "POST /document HTTP/1.1", host: "test.example.com", referrer: "https://test.example.com/document/new" app log: ActionController:

no “ssl_certificate” is defined for the “listen … ssl” directive

岁酱吖の 提交于 2021-02-07 11:53:09
问题 I am trying to configure nginx server for my website. I am using the following code to configure my server. It works if I add default_server for my www.fastenglishacademy.fr (443) server block. But in that case, All my subdomains also brings the content of www.fastenglishacademy.fr And if I remove the default_server, I get the following error: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/fastenglishacademy.fr.conf:14 nginx:

Laravel Forge Add Wildcard Subdomain to Existing

让人想犯罪 __ 提交于 2021-02-07 10:24:46
问题 How do I add Wildcard Subdomains to a site I already created? When you first create one I know you can check a box but how do you do so after the fact? Do I have to edit the NGINX Config file? I tired placing this in the server{} section: server_name ~^(.*)\.mydomain\.com$ ; but it didnt work. I have always used .htaccess so I am not too familiar with NGINX NGINX Config File I tried server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name mydomain.com; server_name ~^(.*)\

Chrome net::ERR_HTTP2_PROTOCOL_ERROR 200 after a reconnect

时光怂恿深爱的人放手 提交于 2021-02-07 09:37:58
问题 I'm using Node server with an express app which handles a Server Sent Events stream. This is proxied via NginX with http2 enabled. The SSE events are consumed via EventSource in a React app. I'm sending a heartbeat message every 10 seconds to keep the connection alive. This all works great until there is some form of network interruption such as putting my laptop to sleep then re-awaking it. Then from that point on the stream will error every 40 or so seconds with the net::ERR_HTTP2_PROTOCOL

Chrome net::ERR_HTTP2_PROTOCOL_ERROR 200 after a reconnect

社会主义新天地 提交于 2021-02-07 09:37:33
问题 I'm using Node server with an express app which handles a Server Sent Events stream. This is proxied via NginX with http2 enabled. The SSE events are consumed via EventSource in a React app. I'm sending a heartbeat message every 10 seconds to keep the connection alive. This all works great until there is some form of network interruption such as putting my laptop to sleep then re-awaking it. Then from that point on the stream will error every 40 or so seconds with the net::ERR_HTTP2_PROTOCOL

Unable to start Nginx server in ubuntu server

不羁的心 提交于 2021-02-07 09:11:51
问题 Unable to start nginx server OS: ubuntu server 16.04 systemctl status nginx.status is throwing this message: ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2016-12-08 14:38:39 UTC; 19min ago Process: 2560 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) nginx.conf file: user www-data;

Can kubernetes Ingress Nginx be autoscaled?

血红的双手。 提交于 2021-02-07 08:29:29
问题 When the Ingress Nginx controller reach its full capacity does it auto scale? Is Kubernetes Ingress even scalable? 回答1: In principle, the NGINX ingress controller is indeed scalable -- it pulls its entire configuration from the Kubernetes API server and is in itself basically stateless. In practice, this depends very much on how your ingress controller is set up. First of all, the ingress controller will not auto-scale by itself. If you have deployed it using a Deployment controller, you can

Nginx reverse proxy subdirectory rewrites for sourcegraph

ε祈祈猫儿з 提交于 2021-02-07 07:16:48
问题 I'm trying to have a self hosted sourcegraph server being served on a subdirectory of my domain using a reverse proxy to add an SSL cert. The target is to have http://example.org/source serve the sourcegraph server My rewrites and reverse proxy look like this: location /source { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; rewrite ^/source/?(.*) /$1 break; proxy_pass http:/