Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes

Hi,im using webinoly for one domain,but when i install google xml sitemap,it ask me to add these code to nginx conf

rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;

but i dont see any domain.conf to add or i dont know where to ask.

Pls help me,thank you :)


Update : 

When i goto /etc/nginx/sites-available, i see domain.com file,and i open this file and see content here

server {

listen 80;

listen [::]:80;

server_name miojav.com www.miojav.com;

access_log /var/log/nginx/miojav.com.access.log we_log; 

error_log /var/log/nginx/miojav.com.error.log;

root /var/www/miojav.com/htdocs;

index  index.php index.html index.htm;

include common/php.conf;

include common/wpcommon.conf;

include common/locations.conf;

include common/headers-http.conf;

include common/headers-html.conf;

#include /var/www/miojav.com/conf/nginx/*.conf;


And i pasted these rewrite code to this file,now i can open sitemap but i show blank page

anyone help me ? tks :D 

1 Answer

0 votes
by Expert

Hi Pham,

This is a known issue, Webinoly comes with Yoast Sitemap pre-configured and this is causing conflicts and issues with other sitemap plugins. It will be fixed in the next major update!

As a temporal fix I suggest you delete the Yoast code:

  1. Go to: sudo nano /etc/nginx/common/wpcommon.conf
  2. At the end of the file you will find the Yoast Sitemap code, remove it!
  3. Restart NGINX: sudo nginx -t && sudo service nginx reload

Now, you can add your sitemap code in your site conf or replacing the Yoast code. Don't forget to restart nginx each time you chage something in your conf.

Please, tell me if it works for you.


Thank you very much!..its worked :D..but i think i will use yoast instead :D.
by Rookie
I'm also facing same problem. It's a major issue. I don't find any code for Yoast in /etc/nginx/common/wpcommon.conf whenever, I'm trying to run Google XML sitemap it's redirecting me to Yoast Index sitemap.

I'm using another plugin which has dependency of Google XMl sitemap so that i can't switch to Yoast. Pls fix this issue. or let me know what to do.
by Expert

This is an old issue and it was fixed a couple of years ago. Please, read the documentation!

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.