<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 29.10.2013 um 21:30 schrieb Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Tue, Oct 29, 2013 at 07:34:15PM +0100, Philipp Kraus wrote:<br><br>Hi there,<br><br><blockquote type="cite"> location /gitlab {<br> root /home/gitlab/gitlab/public;<br> try_files $uri $uri/index.html $uri.html @gitlab;<br></blockquote><br>I suspect that the "$uri/index.html" there may cause you problems. You<br>may be better off using "$uri/" instead.<br></blockquote><div><br></div><div>I have changed it to</div><div><div><br></div><div> location /gitlab {</div><div> alias /home/gitlab/gitlab/public;</div><div> try_files $uri/ @gitlab;</div><div> }</div><div><br></div><div>that does not work also. I have tested it with the "try_files $uri $uri.css".</div></div><br><blockquote type="cite"><br><blockquote type="cite">I get this error:<br><br>[error] 4573#0: *4 open() "/home/www/static.css" failed (2: No such file or directory)<br></blockquote><br>What url did you access to get this message?<br><br>What file on the filesystem did you want it to serve for that url?<br></blockquote><div><br></div><div>The message shows:</div><div><br></div><div><div>2013/10/30 11:10:18 [error] 6692#0: *5 open() "/home/www/static.css" failed (2: No such file or directory), client: <ip>, server: <server>,</div><div>request: "GET /static.css HTTP/1.1", host: "<server>", referrer: "<a href="https://server/gitlab/profile/keys">https://server/gitlab/profile/keys</a>"</div></div><br><blockquote type="cite"><br><blockquote type="cite">How can I tell my location rule, that static content is stored in the correct root folder?<br></blockquote><br>You may need to use "alias" rather than "root"; but that should become<br>clear when you describe the url -> filename mapping that you want.<br></blockquote></div><br><div>I try to port this configuration <a href="https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/nginx/gitlab">https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/nginx/gitlab</a></div><div>to the subdirectory, so GitLab is not called on <a href="https://myserver/">https://myserver/</a> but rather <a href="https://myserver/gitlab">https://myserver/gitlab</a></div><div><br></div><div><br></div><div>Thanks for help</div><div><br></div><div>Phil</div></body></html>