Guest User

nginxhelp

a guest
Apr 3rd, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.26 KB | None | 0 0
  1. server {
  2.     listen  80;
  3.     server_name   ~^(.*)\.devnull\.sh$;
  4.     #if directory doesn't exist
  5.     if (!-d /Users/$1/Sites/public/) {
  6.         rewrite . http://devnull.sh/ redirect;
  7.     }
  8.  
  9.     # Sets the correct root
  10.     root /Users/$1/Sites/public/;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment