Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5.  
  6.  
  7. # root /home/el8le/workspace/railstest/public;
  8. root /home/el8le/workspace/el8le/public;
  9. # root /usr/share/nginx/html/;
  10.  
  11.  
  12. # Add index.php to the list if you are using PHP
  13. # index index.html index.htm index.nginx-debian.html;
  14.  
  15.  
  16. #location / {
  17. # First attempt to serve request as file, then
  18. # as directory, then fall back to displaying a 404.
  19. # try_files $uri $uri/ =404;
  20. # }
  21.  
  22. #location ~ ^/el8le(/.*|$) {
  23. location / {
  24. #autoindex on;
  25. alias /home/el8le/workspace/el8le/public$1; # <-- be sure to point to 'public'!
  26. passenger_base_uri /el8le;
  27. passenger_app_root /home/el8le/workspace/el8le;
  28. passenger_document_root /home/el8le/workspace/el8le/public;
  29. passenger_enabled on;
  30. passenger_friendly_error_pages on;
  31. }
  32.  
  33.  
  34.  
  35.  
  36. passenger_enabled on;
  37. #passenger_ruby /home/el8le/.rbenv/versions/2.3.1/bin/ruby;
  38. passenger_ruby /usr/bin/ruby;
  39. }
Add Comment
Please, Sign In to add comment