Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Laravel - A PHP Framework For Web Artisans
  5. *
  6. * @package Laravel
  7. * @author Taylor Otwell <taylorotwell@gmail.com>
  8. */
  9.  
  10.  
  11. $uri = urldecode(
  12. parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  13. );
  14.  
  15. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  16. // built-in PHP web server. This provides a convenient way to test a Laravel
  17. // application without having installed a "real" web server software here.
  18. if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
  19. return false;
  20. }
  21.  
  22. require_once __DIR__.'/public/index.php';
  23.  
  24. 404 Not Found
  25. nginx/1.15.8
  26.  
  27. [17/Jul/2019:17:42:40] "GET /tesrt HTTP/1.1" 404 185 "-" "Mozilla/5.0
  28.  
  29. server {
  30. listen 80;
  31. listen [::]:80;
  32. server_name ~. "";
  33.  
  34. # ... same config without SSL
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement