نقل قول نوشته اصلی توسط GoogleAds نمایش پست ها
سلام ، و تشکر ، متاسفانه این مورد هم انجام دادم ولی مشکل جایی دیگر هست


خطایی میده که من اصلا متوجه نمیشم مشکل کجاست ، میزنه توی لاین 12 یه اشکالی هست .


This error is in line 12.
There is nothing to start this line
This error only appears in this file
usr/local/directadmin/data/users/admin/nginx.conf


I did not notice the error!
Because there is only one
}
.
I even deleted the line , deleted the first paragraph, and again there is the same error

Code:
[root@server9 admin]# nano nginx.conf
GNU nano 2.0.9 File: nginx.conf


# Auto generated nginx config file by DirectAdmin version 1.61.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to their website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=558
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3

?DOCROOT=`HOME`/domains/`DOMAIN`/public_html| ?REALDOCROOT=`HOME`/domains/`DOMAIN`/public_html|
server
هرچی مشکل هست قبل از این خط هستش ! من نمیدونم بالای این خط چی کمه { ************************************************** *********************** Line 12
listen 192.99.230.000:80;
server_name surenaxxx.xxx www.surenaxxx.xxx ;
access_log /var/log/nginx/domains/surenaxxx.xxx.log;
access_log /var/log/nginx/domains/surenaxxx.xxx.bytes bytes;
error_log /var/log/nginx/domains/surenaxxx.xxx.error.log;
root |DOCROOT|;
index index.php index.html index.htm;
include /usr/local/directadmin/data/users/admin/nginx_php.conf;
location /payment/pay-admin/
{
auth_basic "pay-admin";
auth_basic_user_file /home/admin/domains/surenaxxx.xxx/.htpasswd/public_html/payment/pay-admin/.htpasswd;
include /usr/local/directadmin/data/users/admin/nginx_php.conf;
}
include /etc/nginx/webapps.conf;
}

server
{
listen 192.99.230.000:443 ssl http2;
server_name surenaxxx.xxx www.surenaxxx.xxx ;
access_log /var/log/nginx/domains/surenaxxx.xxx.log;
access_log /var/log/nginx/domains/surenaxxx.xxx.bytes bytes;
error_log /var/log/nginx/domains/surenaxxx.xxx.error.log;
root /home/admin/domains/surenaxxx.xxx/private_html;
index index.php index.html index.htm;
ssl_certificate /usr/local/directadmin/data/users/admin/domains/surenaxxx.xxx.cert.combined;
ssl_certificate_key /usr/local/directadmin/data/users/admin/domains/surenaxxx.xxx.key;
include /usr/local/directadmin/data/users/admin/nginx_php.conf;
location /payment/pay-admin/
{
auth_basic "pay-admin";
auth_basic_user_file /home/admin/domains/surenaxxx.xxx/.htpasswd/public_html/payment/pay-admin/.htpasswd;
include /usr/local/directadmin/data/users/admin/nginx_php.conf;
}
include /etc/nginx/webapps.ssl.conf;
}

server
{
listen 192.99.230.000:80;
server_name go.surenaxxx.xxx www.go.surenahost.xxx ;
access_log /var/log/nginx/domains/surenaxxx.xxx.go.log;
access_log /var/log/nginx/domains/surenaxxx.xxx.go.bytes bytes;
error_log /var/log/nginx/domains/surenaxxx.xxx.go.error.log;
root /home/admin/domains/surenaxxx.xxx/public_html/go;
index index.php index.html index.htm;


really i didn't understand what the error was with this line



[root@server9 custom]# service nginx restart
nginx: [emerg] unknown directive "?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|" in /usr/local/directadmin/data/users/admin/nginx.conf:12
nginx: configuration file /etc/nginx/nginx.conf test failed



missing "|" this line?

Code:
?DOCROOT=`HOME`/domains/`DOMAIN`/public_html| ?REALDOCROOT=`HOME`/domains/`DOMAIN`/public_html|

true ?
Code:
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html| ?REALDOCROOT=`HOME`/domains/`DOMAIN`/public_html|




اینو دقیقا توی انجمن اصلی هم زدم ولی کسی متوجه نشد ،
یکی میگه یه | کم گذاشتی ! در صورتی که من اصلا چیزی رو تغییر ندادم و فقط دایرکت ادمین رو آپدیت کردم ، بعد از آپدیت کاستوم به 2 این مشکل به وجود آمده

خواستید در ارتباط باشید با بنده کمکتون میکنم

@mizban24