Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. location = /authreq.html {
  2. if ($allowed = 0){
  3. # return 307 $scheme://$host/404page.html ; #works but should be 404
  4. # return 404 "shows this message"; #does not redirect when inserting url instead of message
  5. rewrite ^ /404page.html break; #serves 404page.html and doesn't change browseraddress which is good, but sends a response header 200
  6.  
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement