PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشاهده خطای 404 Not Found در nginx



GoogleAds
June 2nd, 2020, 17:56
سلام ، بعد از به روز رسانی کاستوم بیلد 2 و به روز رسانی دایرکت ادمین متاسفانه با این مشکل رو برو شدم

داخل سایت پشتیبانی دایرکت ادمین دیدم که نوشته بود این مشکل در نسخه جدید حل شده ولی برای من به مشکل خورده :(
راه حل ها رو رفتم


صفحاتی که دیدم برای آموزش رو هم بررسی کردم

https://help.directadmin.com/item.php?id=562

بعضی از دوستان گفته بودن ری بیلد کن !



cd /usr/local/directadmin/custombuild
./build rewrite_confs


زدم درست نشد .

یکسری آموزش دیگه دیدم

nginx_php.conf

Code:
location / {
try_files $uri $uri/ /index.php?$args ;
}


اینم اضافه کردم نشد
دوستان کسی راهنمایی میکنه من مشکلم رو حل کنم . ممنون میشم راهنمایی بفرمایید.




404 Not Found

nginx


لاگ httpd



[Tue Jun 02 00:10:18.716211 2020] [core:notice] [pid 3265:tid 140436100831168] AH00094: Command line: '/usr/sbin/httpd'
[Tue Jun 02 00:17:19.357971 2020] [mpm_event:notice] [pid 3265:tid 140436100831168] AH00494: SIGHUP received. Attempting to restart
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/panel] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/panel] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/webmail] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/webmail] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/dl] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/dl] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/doc] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/download] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/product] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/test2] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/test2] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/dl] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/dl] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/doc] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/doc] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/link] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/link] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/download] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/cp] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/cp] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/xn--mgbbg1ab7idag17h] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/cdn] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/cdn] does not exist
AH00112: Warning: DocumentRoot [/home/sabaidea/domains/sabxx.ir/public_html/app] does not exist
AH00112: Warning: DocumentRoot [/home/sabaidea/domains/sabxx.ir/private_html/app] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/demo] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/demo] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/theme] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/theme] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/order] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/order] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/order] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/order] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/hamid] does not exist
AH00112: Warning: DocumentRoot [/home/admin/domains/suspended/hamid] does not exist
[Tue Jun 02 00:17:21.591056 2020] [ssl:warn] [pid 3265:tid 140436100831168] AH01909: www.example.com:8081:0 server certificate does NOT include an ID which matches the server name
[Tue Jun 02 00:17:21.633451 2020] [lbmethod_heartbeat:notice] [pid 3265:tid 140436100831168] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 02 00:17:21.633567 2020] [:notice] [pid 3265:tid 140436100831168] mod_ruid2/0.9.8 enabled
[Tue Jun 02 00:17:21.636153 2020] [mpm_event:notice] [pid 3265:tid 140436100831168] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Jun 02 00:17:21.636175 2020] [core:notice] [pid 3265:tid 140436100831168] AH00094: Command line: '/usr/sbin/httpd'
[Tue Jun 02 06:20:58.940671 2020] [proxy_fcgi:error] [pid 17947:tid 140434286073600] [client 195.54.160.135:0] AH01071: Got error 'Primary script unknown\n'




مشکل فقط روی وردپرس هستش انگار :( .
WHMCS به درستی کار میکنه

GoogleAds
June 3rd, 2020, 11:31
:78: عجب ، چرا اینجا اینقدر خلوت شده !
قبلا بهتر بود ، یه سوال می پرسیدی 5/6 جواب میدادن.
من سوالم رو توی انجمن اصلی دایرکت ادمین پرسیدم ، ادمین اصلی جواب داد ! ولی چرا توی انجمن ایرانی خودمون به این باحالی ، جوابی برای سوال پیدا نکردم .
من شخصا اگر جواب سوالی رو بدونم کمک میکنم ، در هر صورت .
من روی سرورم 2 تا سایت بیشتر ندارم و برام زیاد اهمیت نداره o:-) ولی خواهشا ، یک علامتی از وجود علائم حیاتی از خودتون نشون بدید ، بفهمیم که یکی وجود داره .

بهترین باشید و پاینده.

OmizbanCo
June 12th, 2020, 02:26
:78: عجب ، چرا اینجا اینقدر خلوت شده !
قبلا بهتر بود ، یه سوال می پرسیدی 5/6 جواب میدادن.
من سوالم رو توی انجمن اصلی دایرکت ادمین پرسیدم ، ادمین اصلی جواب داد ! ولی چرا توی انجمن ایرانی خودمون به این باحالی ، جوابی برای سوال پیدا نکردم .
من شخصا اگر جواب سوالی رو بدونم کمک میکنم ، در هر صورت .
من روی سرورم 2 تا سایت بیشتر ندارم و برام زیاد اهمیت نداره o:-) ولی خواهشا ، یک علامتی از وجود علائم حیاتی از خودتون نشون بدید ، بفهمیم که یکی وجود داره .

بهترین باشید و پاینده.

سلام بنده هم همین مشکل رو دارم میشه راهنمایی کنید ؟

yasserhost
June 12th, 2020, 05:22
:78: عجب ، چرا اینجا اینقدر خلوت شده !
قبلا بهتر بود ، یه سوال می پرسیدی 5/6 جواب میدادن.
من سوالم رو توی انجمن اصلی دایرکت ادمین پرسیدم ، ادمین اصلی جواب داد ! ولی چرا توی انجمن ایرانی خودمون به این باحالی ، جوابی برای سوال پیدا نکردم .
من شخصا اگر جواب سوالی رو بدونم کمک میکنم ، در هر صورت .
من روی سرورم 2 تا سایت بیشتر ندارم و برام زیاد اهمیت نداره o:-) ولی خواهشا ، یک علامتی از وجود علائم حیاتی از خودتون نشون بدید ، بفهمیم که یکی وجود داره .

بهترین باشید و پاینده.

متاسفانه بدلیل عدم وجود کاربر فعال در این انجمن خیلی کم فعالیت میشه...

میتونید به این قسمت رفته Custom HTTPD Configurations و دامین خودتون رو انتخاب کنید و لاین زیر رو اضاف کنید . سپس یکبار nginx رو ریست بدید.




location / {
try_files $uri $uri/ /index.php?$args;
}

GoogleAds
June 17th, 2020, 18:41
متاسفانه بدلیل عدم وجود کاربر فعال در این انجمن خیلی کم فعالیت میشه...

میتونید به این قسمت رفته Custom HTTPD Configurations و دامین خودتون رو انتخاب کنید و لاین زیر رو اضاف کنید . سپس یکبار nginx رو ریست بدید.




location / {
try_files $uri $uri/ /index.php?$args;
}




سلام ، و تشکر ، متاسفانه این مورد هم انجام دادم ولی مشکل جایی دیگر هست


خطایی میده که من اصلا متوجه نمیشم مشکل کجاست ، میزنه توی لاین 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 (http://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 (http://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 (http://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 این مشکل به وجود آمده

yasserhost
June 19th, 2020, 03:47
سلام ، و تشکر ، متاسفانه این مورد هم انجام دادم ولی مشکل جایی دیگر هست


خطایی میده که من اصلا متوجه نمیشم مشکل کجاست ، میزنه توی لاین 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 (http://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 (http://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 (http://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

mh.eftekhari
August 14th, 2020, 13:35
سلام وقت بخیر
برای تمیز کار کردن روی دایرکت ادمین بهتره که از apache_nginx استفاده کنین.
این حالت اپچی میشه وب سرور اصلی و nginx پاسخ دهنده به کاربر میباشد که سرعت دانلود فایل های استاتیک فوق العاده بالا میرود همچنین فایل .htaccess هم برای شما کار میکند. و میتوانین رفتار معمولی برای تغییرات در هاست را داشته باشین