Softaculous


Topic : Nginx Yandex Site Verification Problem (.html)


Posted By: batursoylu on July 11, 2017, 3:19 pm
Hi everyone,

Nginx Yandex Site Verification Problem (.html)
I can not display the html page I have installed in the root directory and encounter 404 error.

What should I do?

Thank you.

Posted By: batursoylu on July 13, 2017, 6:42 am | Post: 1
Problem solved.

Login Webuzo (yourip:2002) panel and follow these steps carefully.

Board Image

1 - https://prnt.sc/fv2ou8

Board Image

2- https://prnt.sc/fv2t5m

PHP Code

 # Oxwall

    
if ($uri !~ "^/index.php"){
        
set $rule 1$rule;
    }
    if (
$uri "(/|.php|.html|.htm|.xml|.feed|robots.txt|.raw|/[^.]*)$"){
        
set $rule 2$rule;
    }
    if (
$uri !~ "/cb7da7f27593.html"){        << notesite verification .html
        set $rule 3$rule
;
    }
    if (
$uri !~ "/sitemap.xml"){                   << notesitemap .xml
        set $rule 4$rule
;
    }
    if (
$uri !~ "/phpinfo.php"){                   << notephpinfo.php
        set $rule 5$rule
;
    }
    if (
$uri !~ "/squirrel"){                         << notesubfolder sample
        set $rule 6$rule
;
    }
    if (
$rule "654321"){
        
rewrite /(.*) /index.php last;           << noteHow many rules are? (6 nowavailable    }
    
    
## XML Sitemap support.                 << Alternative sitemap.xml
location = /sitemap.xml {
    
try_files $uri @xmlrewrite;
  } 




service nginx restart

So you can define different rules on the domain you want. Thank you for reading.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.