Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Nginx Yandex Site Verification Problem (.html)



Threaded Mode | Print  

 Nginx Yandex Site Verification Problem (.html) (1 Replies, Read 3967 times)
batursoylu
Group: Member
Post Group: Newbie
Posts: 46
Status:
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.
IP: --   

(SOLVED) Nginx Yandex Site Verification Problem
batursoylu
Group: Member
Post Group: Newbie
Posts: 46
Status:
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.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 18, 2024, 6:04 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.027