Nginx setting does not work
-
Hello,
We are using a tool to delpoy WordPress, please check the tool at wordops.net.
This might be a special situation to install this plugin.
It show like this:
NGINX detected. In case you didn't add the code in the NGINX config already, please add the following line. include /var/www/xiaolaner.com/htdocs/hidemywp.conf; Don't forget to reload the Nginx service. Learn how to setup on Nginx server
But sites-enabled option activated on our server, and it looks like this way:
server {
# Uncomment the following line for domain mapping
# listen 80 default_server;server_name xiaolaner.com *.xiaolaner.com;
# Uncomment the following line for domain mapping
#server_name_in_redirect off;access_log /var/log/nginx/xiaolaner.com.access.log rt_cache_redis;
error_log /var/log/nginx/xiaolaner.com.error.log;root /var/www/xiaolaner.com/htdocs;
index index.php index.html index.htm;
include common/redis-php74.conf;
include common/wpsubdir.conf;
include common/wpcommon-php74.conf;
include common/locations-wo.conf;
include /var/www/xiaolaner.com/conf/nginx/*.conf;}
and I tried adding both following ways, but no luck:
1# Only add
include path-to-file/hidemywp.conf;
2# add all of below content:include path-to-file/hidemywp.conf; location / { try_files $uri $uri/ /index.php?$args; }
Nginx will not work, Anyway to resolve please?
Thanks
- The topic ‘Nginx setting does not work’ is closed to new replies.