[GH-ISSUE #156] Conf files not found #7203

Closed
opened 2026-03-12 19:31:41 +03:00 by kerem · 1 comment
Owner

Originally created by @Spleenftw on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/156

Hello,

I got multiple files on my nginx vm :

root@nginx:/etc/nginx/conf.d# ls -l
total 16
-rw-r--r-- 1 root root 1061 Jul  6 11:57 default.mydomainname.xyz.conf
-rw-r--r-- 1 root root 1428 Aug  2 16:10 site1.mydomainname.xyz.conf
-rw-r--r-- 1 root root  862 Jul 27 19:28 site2.mydomainname.xyz.conf
-rw-r--r-- 1 root root 1491 Jul  6 11:55 site3.mydomainname.xyz.conf

and i got this line in my nginx.conf :

include /etc/nginx/conf.d/*.conf;

But in my "Sites List", it's juste giving me an error that /etc/nginx/sites-enabled: no such file or directory.

i kinda don't get it

Originally created by @Spleenftw on GitHub (Aug 21, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/156 Hello, I got multiple files on my nginx vm : ``` root@nginx:/etc/nginx/conf.d# ls -l total 16 -rw-r--r-- 1 root root 1061 Jul 6 11:57 default.mydomainname.xyz.conf -rw-r--r-- 1 root root 1428 Aug 2 16:10 site1.mydomainname.xyz.conf -rw-r--r-- 1 root root 862 Jul 27 19:28 site2.mydomainname.xyz.conf -rw-r--r-- 1 root root 1491 Jul 6 11:55 site3.mydomainname.xyz.conf ``` and i got this line in my nginx.conf : ``` include /etc/nginx/conf.d/*.conf; ``` But in my "Sites List", it's juste giving me an error that /etc/nginx/sites-enabled: no such file or directory. i kinda don't get it
kerem 2026-03-12 19:31:41 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@0xJacky commented on GitHub (Aug 21, 2023):

This is a common issue, please check our documentation: https://nginxui.com/guide/getting-started.html

Before Use

The Nginx UI follows the Debian web server configuration file standard. Created site configuration files will be placed in the sites-available folder that under the Nginx configuration folder (auto-detected). The configuration files for an enabled site will create a soft link to the sites-enabled folder. You may need to adjust the way the configuration files are organised.

For non-Debian (and Ubuntu) systems, you may need to change the contents of the nginx.conf configuration file to the Debian style as shown below.

http {
	# ...
	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

For more information: debian/conf/nginx.conf

In your case, you need to create /etc/nginx/sites-enabled and /etc/nginx/sites-available, move /etc/nginx/conf.d/* to /etc/nginx/sites-available/, then add include /etc/nginx/sites-enabled/*; under include /etc/nginx/conf.d/*.conf;, finally reload nginx, and you will see the sites list.

<!-- gh-comment-id:1686297973 --> @0xJacky commented on GitHub (Aug 21, 2023): This is a common issue, please check our documentation: https://nginxui.com/guide/getting-started.html ## Before Use The Nginx UI follows the Debian web server configuration file standard. Created site configuration files will be placed in the sites-available folder that under the Nginx configuration folder (auto-detected). The configuration files for an enabled site will create a soft link to the sites-enabled folder. You may need to adjust the way the configuration files are organised. For non-Debian (and Ubuntu) systems, you may need to change the contents of the nginx.conf configuration file to the Debian style as shown below. ```nginx http { # ... include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } ``` For more information: [debian/conf/nginx.conf](https://salsa.debian.org/nginx-team/nginx/-/blob/master/debian/conf/nginx.conf#L59-L60) In your case, you need to create `/etc/nginx/sites-enabled` and `/etc/nginx/sites-available`, move `/etc/nginx/conf.d/*` to `/etc/nginx/sites-available/`, then add `include /etc/nginx/sites-enabled/*;` under `include /etc/nginx/conf.d/*.conf;`, finally reload nginx, and you will see the sites list.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7203
No description provided.