On Tue, Jul 28, 2009 at 04:47:26PM -0400, APseudoUtopia wrote:
> 2009/7/26 Igor Sysoev <is@rambler-co.ru>:
> > On Sun, Jul 26, 2009 at 02:07:28PM -0400, APseudoUtopia wrote:
> >
> >> Hey list,
> >>
> >> How does one create an alias in nginx? Here's my setup:
> >>
> >> My web-root is /usr/local/www/main. It's a copy of a SVN repo, so I
> >> cannot manually add any folders in there.
> >> I want to make an alias from domain.com/wiki to /usr/local/www/wiki.
> >> I've tried the following code:
> >>
> >> location = /wiki {
> >> alias /usr/local/www/wiki;
> >> }
> >>
> >> But this isn't working. nginx is returning a "404" error. Here's the
> >> whole config for the server block:
> >>
> >> server {
> >>