Hi, I am Using Ubuntu 20 LTS and Nginx

#101189
  • Resolved Anonymous
    Rank Math free

    Hi, I am Using Ubuntu 20 LTS and Nginx and my Sitemap is not showing. Your Plugin is Saying to Paste a code in nginx Config File. But after pasting that code in config file the Nginx Show the Following Error:

    nginx: [emerg] “rewrite” directive is not allowed here in /etc/nginx/nginx.conf:103
    nginx: configuration file /etc/nginx/nginx.conf test failed

    Now kindly Guide me what i have to do.
    I am waiting for your Response.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Its Resolved Now. I was Pasting the Code in Wrong File. The Code Should be Pasted in /etc/nginx/sites-available/

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Hi, I am Using Ubuntu 20 LTS and Nginx’ is closed to new replies.