Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. location / {
  2. if ($http_host ~* "^www.darkw.pl(.*)"){
  3. rewrite ^(.*)$ https://darkw.pl/$1 redirect;
  4. }
  5. rewrite ^(.*)$ https://$http_host$request_uri redirect;
  6. rewrite ^/(.*)-f([0-9]*)/mcp.php(.*) /mcp.php?$query_string redirect;
  7. rewrite ^/(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html /viewtopic.php?f=$2&t=$4&start=$5&$query_string break;
  8. rewrite ^/(.*)-f([0-9]*)/(.*)-t([0-9]*).html /viewtopic.php?f=$2&t=$4&$query_string break;
  9. rewrite ^/(.*)-f([0-9]*)/index-s([0-9]*).html /viewforum.php?f=$2&start=$3&$query_string break;
  10. rewrite ^/(.*)-f([0-9]*)/ /viewforum.php?f=$2&$query_string break;
  11. rewrite ^/(.*)-f([0-9]*) /viewforum.php?f=$2&$query_string break;
  12. if (!-e $request_filename){
  13. rewrite ^(.*)$ /app.php break;
  14. }
  15. }
  16.  
  17. location /config.php {
  18. deny all;
  19. deny all;
  20. }
  21.  
  22. location /common.php {
  23. deny all;
  24. deny all;
  25. }
  26.  
  27. location /403.shtml {
  28. allow all;
  29. }</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement