Welcome! Log In Create A New Profile

Advanced

Re: Simple URI redirection / alias in Nginx…

May 30, 2011 06:57PM
I meant this:

location / {

Not "location = / {" of course.

Thanks!



-------------------------------------------------------
> I have a similar issue.
>
> Do we need separate location directives for each
> and every possible path, or can we do some
> "rewrite" inside location for the main / root
> folder? For example:
>
> location = / {
>
> # rewrite rules come here..
> rewrite "^/adm$" "/wordpress/wp-login.php";
> ....
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_param SCRIPT_FILENAME
> /var/www/example.com/wordpress/wp-login.php
> include /etc/nginx/fastcgi_params;
>
> }
>
>
>
> To me this is cleaner, but want to make sure that
> this is not the less desirable way?
>
> Thanks.
Subject Author Posted

Simple URI redirection / alias in Nginx…

atipico May 30, 2011 09:40AM

Re: Simple URI redirection / alias in Nginx…

Igor Sysoev May 30, 2011 02:48PM

Re: Simple URI redirection / alias in Nginx…

atipico May 30, 2011 07:03PM

Re: Simple URI redirection / alias in Nginx…

Igor Sysoev May 30, 2011 10:12PM

Re: Simple URI redirection / alias in Nginx…

atipico June 01, 2011 08:20AM

Re: Simple URI redirection / alias in Nginx…

pk899 May 30, 2011 06:56PM

Re: Simple URI redirection / alias in Nginx…

pk899 May 30, 2011 06:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready