location problem with static content
    Francis Daly 
    francis at daoine.org
       
    Tue Oct 29 20:30:23 UTC 2013
    
    
  
On Tue, Oct 29, 2013 at 07:34:15PM +0100, Philipp Kraus wrote:
Hi there,
>     location /gitlab {
>         root /home/gitlab/gitlab/public;
>         try_files $uri $uri/index.html $uri.html @gitlab;
I suspect that the "$uri/index.html" there may cause you problems. You
may be better off using "$uri/" instead.
> I get this error:
> 
> [error] 4573#0: *4 open() "/home/www/static.css" failed (2: No such file or directory)
What url did you access to get this message?
What file on the filesystem did you want it to serve for that url?
> How can I tell my location rule, that static content is stored in the correct root folder?
You may need to use "alias" rather than "root"; but that should become
clear when you describe the url -> filename mapping that you want.
	f
-- 
Francis Daly        francis at daoine.org
    
    
More information about the nginx
mailing list