![](/img/trans.png)
[英]How to handle Nginx reverse proxy 502 Error in specific case?
這是我的 nginx 默認值 我在這個 /opt/code-server/login-with-args.html 位置有 login-with-args.html 但 linux 中的 curl 命令給了我 200 但在我的瀏覽器中它顯示了 502 錯誤。 這就是我從 UI https://ur ...
[英]How to handle Nginx reverse proxy 502 Error in specific case?
這是我的 nginx 默認值 我在這個 /opt/code-server/login-with-args.html 位置有 login-with-args.html 但 linux 中的 curl 命令給了我 200 但在我的瀏覽器中它顯示了 502 錯誤。 這就是我從 UI https://ur ...
[英]NGINX, How to use same location path for different target folder?
我正在嘗試在 nginx 中使用相同的位置路徑。 但它正在渲染應用程序文件夾。 我正在嘗試在“/”路徑的情況下呈現“主”文件夾 html 文件,在任何其他路徑的情況下呈現“app”文件夾 html 文件。 ...
[英]Nginx not serving on the domain
我已經在虛擬機上安裝了 nginx(操作系統:Ubuntu 18)。 我正在學習本教程,但問題是我無法看到在 your_domain.com 上提供的內容。 這是我的 nginx.conf: 啟用站點和可用站點目錄中的文件:默認 your_domain your_domain(啟用站點和可用站點) ...
[英]Redirecting nginx causes 'too many redirects' error
我需要將 www 重定向到非 www 並將 HTTP 重定向到 HTTPS 和 nginx。我可以讓它重定向,但隨后出現“重定向太多”錯誤。 我使用的是WordPress的Azure AppService版本。這個版本使用wordpress-alpine-php docker鏡像,運行nginx版本 ...
[英]Question about forwarding ssl payload to upstream tcp server
這些天,我正在使用 nginx 將 ssl 有效載荷轉發到上游 tcp 服務器,經過大量實驗后,最終的 nginx 配置如下: 實驗中最難的問題是nginx沒有根據服務器名稱將ssl payload轉發到上游tcp服務器,我研究了很多天,但一無所獲。 昨天我的同事不小心刪除ssl_preread o ...
[英]I get multiple errors, when I try to install all modules from a package.json file on my nginx webserver
我目前正在嘗試使用 nginx 和 Putty 在 VPS 上配置我的投資組合。 現在我想為我的后端安裝所有必需的模塊,但我收到了這個錯誤。 我不知道該怎么做,很想得到一些幫助。 為了安裝所有模塊,我轉到我的后端文件夾並在我的 Putty 控制台中鍵入“npm install”。 然后它開始下載模塊 ...
[英]Nginx proxy_pass from route without trailing slash
我想將 Nginx 配置為在我的域代理上有一個路由到另一個 URL。更具體地說,我希望my.domain.com/special_route代理到another.domain.com並且 URL 在地址中保持不變酒吧。 例如,我希望my.domain.com/special_route/some_p ...
[英]Subdirectoriy return incorrect content Nginx autoindex with dynamic path
我想使用 autoindex 來公開服務器上的一些文件。 為了方便,我想在url中使用short_id,而在文件系統上使用full_id。 當我嘗試訪問子目錄或下載文件時,我總是得到根目錄的內容,它沒有正確返回我需要的內容例如:訪問examlple.com/12345和example.com/123 ...
[英]Can someone tell me why the nginx secure_link module expiration is not working?
我在這個 pastebin 中包含的 nginx conf 文件中有一個使用 secure_link 模塊的塊: https://pastebin.com/dyZmNsRe 這個 python 腳本生成這個 pastebin 中的 url: https://pastebin.com/DdNkhmB ...
[英]Permission denied /media files Django Nginx setup
我遵循了本教程: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04 一切正常(提供靜態文件等),但用戶上傳的媒 ...
[英]Nginx auth_request_set is not working as expected
我已經查看了這些類似的帖子: 無法使用 NGINX auth_request_set 訪問添加的標頭 https://serverfault.com/questions/954333/nginx-upsteam-cache-status-custom-header-will-not-appear ...
[英]Unable to add variable "Max_Input_Vars = 10000" to Additional Directives field in Nginx Settings in Plesk Obsidian
我已經在 Plesk 上設置了一個域 (beinte.net.co.uk),我想用於客戶端的 WordPress 主題需要超過 5000 個最大輸入變量。 我曾嘗試更改 php.ini 文件中的值,但這只是默認為標准 1000 值。 我已嘗試將這些值添加到 .htaccess 文件,這會使網站崩潰並 ...
[英]Git server cannot push. Unable to create temporary object directory
下午好, 我試圖想出我自己托管的 git 服務器,但我在使用 HTTPs 配置 git 選項時遇到問題。 我已經安裝了 nginx 和 fastcgi。 這些是 git 文件的以下配置 /etc/nginx/nginx.conf /etc/nginx/sites-available/default ...
[英]Nginx resverse proxy for prams in an expressjs application
我在 expressjs 應用程序中有一條路線,代碼如下。 ... ... 我想設置我的 nginx 代理以轉發 id。 nginx 的 conf 文件在這里... server { root /var/www/html; ... 我的反向代理文件有什么問題。 現在我已經把它恢復到原來的狀態 ...
[英]is try_files processing context in named location different from normal location?
我有流程 nginx 配置: /mypath/p1/ 目錄包含文件 index.html,但 /mypath/p2/ 不包含。 當我請求一個在所有兩個目錄中都不存在的文件時,nginx 返回 /mypath/p1/index.html 內容。 如果我將@verify 位置修改為: 當我請求一個在 ...
[英]Nginx create a map dynamically based on request/response values
我正在尋找一種方法來在 Nginx 語法的約束下實現我的以下目標。 場景/目標: 由於各種原因,我需要 Nginx 來驗證從外部身份驗證系統返回的某些值(進一步處理)。 這似乎很容易通過使用 Nginx map 測試值來完成,但它似乎並不像我想象的那么簡單。 整個 nginx 和 auth 系統已 ...
[英]Basic NGINX proxy_pass example is serving 404's
我有一個非常基本的開箱即用的 NGINX 服務器,運行在 Windows 機器上,地址為http://10.0.15.19:80 。 我試圖將其用作代理來繞過 CORS 限制。 我有以下nginx.conf ,從我見過的每個示例中,它聽起來應該將任何流量從http://10.0.15.19重定向到 ...
[英]How to get real client IP directly from nginx
我想直接從nginx返回得到最終的真實客戶端IP,避免得到代理服務器的IP。 我搜索過的文章都是這樣的 但是這種格式是為了應用程序從請求中獲取 IP。 怎么能在URL命中的時候直接返回真實客戶端IP呢? 喜歡 但是當然,上面的格式是行不通的。 如何修改上述格式直接獲取最終客戶端的IP而不獲取代理服 ...
[英]nginx php8.2-fpm not rendering
我正在嘗試使用 php8.2-fpm 設置 nginx,但我得到的只是下載的 index.php。 我搜索了那個問題,發現問題是 nginx 和 fpm 之間的連接,但我沒有找到它在哪里中斷。 這是我的網站 nginx 配置文件: fpm 服務正在運行。 我什至嘗試了 fpm 版本 7.3、8.1 ...
[英]nginx returning 404 not found for GET request
我的 nginx 服務器有以下 nginx.conf 當我做 nginx 返回其標准的 output,這沒問題。 但是當我嘗試 它返回以下內容 但是我的文件 /opt/service_state 的內容 這只是一個純文本。 我預計會出現以下行為: 返回 我的 nginx.conf 錯了嗎? 我如何 ...