Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- # root /home/el8le/workspace/railstest/public;
- root /home/el8le/workspace/el8le/public;
- # root /usr/share/nginx/html/;
- # Add index.php to the list if you are using PHP
- # index index.html index.htm index.nginx-debian.html;
- #location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- # try_files $uri $uri/ =404;
- # }
- #location ~ ^/el8le(/.*|$) {
- location / {
- #autoindex on;
- alias /home/el8le/workspace/el8le/public$1; # <-- be sure to point to 'public'!
- passenger_base_uri /el8le;
- passenger_app_root /home/el8le/workspace/el8le;
- passenger_document_root /home/el8le/workspace/el8le/public;
- passenger_enabled on;
- passenger_friendly_error_pages on;
- }
- passenger_enabled on;
- #passenger_ruby /home/el8le/.rbenv/versions/2.3.1/bin/ruby;
- passenger_ruby /usr/bin/ruby;
- }
Add Comment
Please, Sign In to add comment