[GH-ISSUE #348] folders not found inside /etc/nginx in RHEL9 #3296

Closed
opened 2026-02-28 11:55:26 +03:00 by kerem · 0 comments
Owner

Originally created by @rfinotti on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/348

Is your feature request related to a problem? Please describe.
During Nginx installation in RHEL OS, nginx will not create the SITES-AVAILABLE and SITES-ENABLED folders inside ../etc/nginx/, hence the NGINX-UI will fail when a new site is created as it will not find those folders.

Describe the solution you'd like
I would suggest adding the following piece of code to the install.sh

nginx_dir="/etc/nginx"
directories=("sites-available" "sites-enabled")

for dir_name in "${directories[@]}"; do
    directory="$nginx_dir/$dir_name"
    if [ ! -d "$directory" ]; then
        echo "Creating $dir_name directory..."
        mkdir -p "$directory"
    fi
done
Originally created by @rfinotti on GitHub (Apr 4, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/348 **Is your feature request related to a problem? Please describe.** During Nginx installation in RHEL OS, nginx will not create the SITES-AVAILABLE and SITES-ENABLED folders inside ../etc/nginx/, hence the NGINX-UI will fail when a new site is created as it will not find those folders. **Describe the solution you'd like** I would suggest adding the following piece of code to the install.sh ``` nginx_dir="/etc/nginx" directories=("sites-available" "sites-enabled") for dir_name in "${directories[@]}"; do directory="$nginx_dir/$dir_name" if [ ! -d "$directory" ]; then echo "Creating $dir_name directory..." mkdir -p "$directory" fi done ```
kerem 2026-02-28 11:55:26 +03:00
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#3296
No description provided.