Re: RoR app, “Failed to load resource: the server responded with a status of 404 (Not Found)”

Jake He jake.he at gmail.com
Sat Oct 18 00:44:44 UTC 2014


Thank you.

I tried. Removed $1, restarted Nginx. But it does not work. Still the same
issue.

Jake

On 17 October 2014 23:36, mex <nginx-forum at nginx.us> wrote:

> iirc you donw need a $1 behind alias like in rewrite-rules
>
> http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
>
> the following should work
>
> location /wifi  {
>     alias /var/www/owums/public; # <-- be sure to point to 'public'!
>     passenger_base_uri /wifi;
>     passenger_app_root /var/www/owums;
>     passenger_document_root /var/www/owums/public;
>     passenger_enabled on;
>     passenger_app_env development;
> }
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,254102,254110#msg-254110
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141018/d4142ac5/attachment.html>


More information about the nginx mailing list