Please use this template for troubleshooting questions.
My issue:
I cannot change my URL e.g. /dfdrgr.php?page=dfgfg to /rrrr. I’ve a .txt file contained e.g. /rrrr /dfdrgr.php?page=dfgfg; and a redirected.map file contained
# Redirects map file – auto generated
include /home/fxg/conf/web/ron.click/redirects.txt;
And a redirects.conf contaned:
# Nginx map block – auto generated
map $uri $rewrite_target {
default "";
include /home/fxg/conf/web/ron.click/redirects.map;
}
map $rewrite_target $should_redirect {
"" 0;
default 1;
}
The nginx.conf is contained:
#=========================================================================#
Default Web Domain Template
DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS
#=========================================================================#
server {
listen 88.121.229.139:80;
server_name ron.click ;
error_log /var/log/apache2/domains/ron.click.error.log error;
if ($should_redirect) {
return 307 https://$server_name$rewrite_target;
}
include /home/fxg/conf/web/ron.click/nginx.forcessl.conf*;
location ~ /\.(?!well-known\/|file) {
deny all;
return 404;
}
location / {
proxy_pass http://88.121.229.139:8080;
location ~* ^.+\.(css|htm|html|js|mjs|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
try_files $uri @fallback;
root /home/fxg/web/ron.click/public_html;
access_log /var/log/apache2/domains/ron.click.log combined;
access_log /var/log/apache2/domains/ron.click.bytes bytes;
expires max;
}
}
location @fallback {
proxy_pass http://88.121.229.139:8080;
}
location /error/ {
alias /home/fxg/web/ron.click/document_errors/;
}
include /home/fxg/conf/web/ron.click/nginx.conf_*;
}
and nginx.ssl.conf:
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://hestiacp.com/docs/server-administration/web-templates.html #
#=========================================================================#
server {
listen 88.121.229.139:443 ssl;
server_name ron.click ;
error_log /var/log/apache2/domains/ron.click.error.log error;
ssl_certificate /home/fxg/conf/web/ron.click/ssl/ron.click.pem;
ssl_certificate_key /home/fxg/conf/web/ron.click/ssl/ron.click.key;
ssl_stapling on;
ssl_stapling_verify on;
# TLS 1.3 0-RTT anti-replay
if ($anti_replay = 307) { return 307 https://$host$request_uri; }
if ($anti_replay = 425) { return 425; }
if ($should_redirect) {
rewrite ^ $rewrite_target break;
proxy_pass https://88.121.229.139:8443;
break;
}
include /home/fxg/conf/web/ron.click/nginx.hsts.conf*;
location ~ /\.(?!well-known\/|file) {
deny all;
return 404;
}
location / {
proxy_ssl_server_name on;
proxy_ssl_name $host;
proxy_pass https://88.121.229.139:8443;
location ~* ^.+\.(css|htm|html|js|mjs|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
try_files $uri @fallback;
root /home/fxg/web/ron.click/public_html;
access_log /var/log/apache2/domains/ron.click.log combined;
access_log /var/log/apache2/domains/ron.click.bytes bytes;
expires max;
}
}
location @fallback {
proxy_ssl_server_name on;
proxy_ssl_name $host;
proxy_pass https://88.121.229.139:8443;
}
location /error/ {
alias /home/fxg/web/ron.click/document_errors/;
}
proxy_hide_header Upgrade;
include /home/fxg/conf/web/ron.click/nginx.ssl.conf_*;
}
How I encountered the problem:
There is no problem in running the nginx but I get 404 error in my browser for https://ron.click/rrrr. I tested it using nginx -t but more probably I’m doing something wrong in nginx.conf or nginx.ssl.conf or redirection.conf. I’m using Hestia.
Solutions I’ve tried:
Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric):
1.29.3
Deployment environment:
Minimal NGINX config to reproduce your issue (preferably running on https://tech-playground.com/playgrounds/nginx for ease of debugging, and if not as a code block): (Tip → Run nginx -T to print your entire NGINX config to your terminal.)
NGINX access/error log: (Tip → You can usually find the logs in the /var/log/nginx directory.) for error log: 2025/12/09 19:35:32 [emerg] 1700546#1700546: “proxy_pass” directive is not allow ed here in /etc/nginx/conf.d/domains/ron.click.ssl.conf:23
2025/12/09 19:35:38 [emerg] 1735085#1735085: “proxy_pass” directive is not allow ed here in /etc/nginx/conf.d/domains/ron.click.ssl.conf:23
2025/12/09 19:36:18 [emerg] 1735692#1735692: “proxy_pass” directive is not allow ed here in /etc/nginx/conf.d/domains/ron.click.ssl.conf:23