NginxProxyManager / NginxProxyManager/nginx-proxy-manager

How can I add a nginx domain host configuration?

Open
#3,850 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

I wanna add a domain that is hosted in PHP-FPM docker. My configuration (a simple example):

server {
    listen 80 default_server;

    index index.php index.html;
    server_name site1.local;
    # server_name _;
    error_log  /var/log/nginx/error.log;
    access_log /var/log/nginx/access.log;

    root /application/site1;
    client_max_body_size 12M;

    location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass php:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}

I'm not getting how to add this!!! FYI, In fastcgi_pass php:9000;, php is container identity as you already know.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named; start by tracing how this project creates and configures proxy hosts, using the posted Nginx server block and PHP-FPM Docker setup as the scenario. Done means the supported way to add this domain and connect it to the PHP-FPM container is clearly documented or exposed by the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx, php
Domain
backend, infrastructure
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.