AriyanPayamak
Verified User
- Joined
- Nov 4, 2014
- Messages
- 28
Hello Every One .
After updating custom build to the latest version.
Unfortunately, there is a problem with displaying WordPress sites.
I have done some solutions
But the problem was not solved
Error
404 Not Found
nginx
****************
my nginx_server.conf
The service does not reset
[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
some topic It has been studied, but I did not understand
Please help me for solve this problem .
thank you
After updating custom build to the latest version.
Unfortunately, there is a problem with displaying WordPress sites.
I have done some solutions
But the problem was not solved
Error
404 Not Found
nginx
****************
my nginx_server.conf
Code:
[root@server9 custom]# nano nginx_server.conf
nginx_server.conf
|CUSTOM1| ?DOCROOT=`HOME`/domains/`DOMAIN`/public_html| ?REALDOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/usr/local/lib/php/|
server
{
|CUSTOM|
listen |IP|:|PORT_80|;
|MULTI_IP|
server_name |DOMAIN| www.|DOMAIN| |SERVER_ALIASES|;
access_log /var/log/nginx/domains/|DOMAIN|.log;
access_log /var/log/nginx/domains/|DOMAIN|.bytes bytes;
error_log /var/log/nginx/domains/|DOMAIN|.error.log;
root |DOCROOT|;
index index.php index.html index.htm;
|NGINX_PHP_CONF|
|*if HAVE_NGINX_PROXY="1"|
location /
{
|CUSTOM2|
|LOCATION_INSERT|
# access_log off;
proxy_buffering |PROXY_BUFFERING|;
proxy_pass http://|IP|:|PORT_8080|;
proxy_set_header X-Client-IP $remote_addr;
proxy_set_header X-Accel-Internal /nginx_static_files;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header Upgrade;
}
location /nginx_static_files/
{
# access_log /var/log/nginx/access_log_proxy;
alias |DOCROOT|/;
internal;
}
|*else|
|NGINX_REDIRECTS|
|PROTECTED_DIRECTORIES|
|EXTRA_LOCATIONS|
|*endif|
|CUSTOM3|
include /etc/nginx/webapps.conf;
|CUSTOM4|
}
The service does not reset
[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
some topic It has been studied, but I did not understand
NGINX shows 404 for JS and CSS Files
Hi Guys, I have configured NGINX as a reverse proxy and now js and css files does not load and shows 404 instead , but the files are there on the server. Any way to resolve this?
forum.directadmin.com
problem squirrelmail and phpmyadmin error 404 with nginx
I set my server to nginx but squirrelmail and phpmy admin showing error 404 . and wordpress permalink has problem . But with my ip http://myip/squirrelmail and http://myip/phpMyAdmin is correctly and no problem for login. nginx log error : 2018/07/13 20:49:15 [error] 18066#0: *60667...
forum.directadmin.com
After updating Custombuilt Nginx will not start
Hi There, I've a serious issue on my Centos server with DirectAdmin installed. The Nginx webserver is failing to start after an update 30 minutes ago. Hope there's someone that can help! I get the following message in the terminal: ● nginx.service - The nginx HTTP and reverse proxy server...
forum.directadmin.com
CustomBuild 2.0 nginx not .htaccess rewrite
Hi After upgrade to CustomBuild 2.0 And install the nginx web server Code. Htaccess does not work Example: RewriteEngine on RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum RewriteRule...
forum.directadmin.com
Please help me for solve this problem .
thank you