Welcome! Log In Create A New Profile

Advanced

Re: Alias in Nginx Config

July 31, 2009 05:51AM
On Thu, Jul 30, 2009 at 05:09:08PM -0400, APseudoUtopia wrote:

> 2009/7/29 Igor Sysoev <is@rambler-co.ru>:
> > 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 {
> >> >>
Subject Author Posted

Alias in Nginx Config

APseudoUtopia July 26, 2009 02:07PM

Re: Alias in Nginx Config

Igor Sysoev July 26, 2009 03:25PM

Re: Alias in Nginx Config

APseudoUtopia July 28, 2009 04:47PM

Re: Alias in Nginx Config

Igor Sysoev July 29, 2009 04:50AM

Re: Alias in Nginx Config

APseudoUtopia July 30, 2009 05:09PM

Re: Alias in Nginx Config

Igor Sysoev July 31, 2009 05:51AM

Re: Alias in Nginx Config

APseudoUtopia August 01, 2009 10:54AM

Re: Alias in Nginx Config

Igor Sysoev August 01, 2009 02:58PM

Re: Alias in Nginx Config

APseudoUtopia August 15, 2009 04:07PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready