Welcome! Log In Create A New Profile

Advanced

Re: Rewriting Base URL when passing

adam estes
February 15, 2012 03:16PM
It seems to actually be rewriting the url now. The issue is with how its
doing it

when I visit 69.x.x.x./django/admin/

it rewrites it to 69.x.x.x/admin/

which is then processed by nginx again I'm guessing because it loads the
IPB admin folder, and not the django admin url like it should if it was
being handled by django.

On Wed, Feb 15, 2012 at 3:06 PM, adam estes <wtymdjs@gmail.com> wrote:

> I removed that from both the uwsgi_params and uwsgi_params.default. Still
> isn't working.
>
>
> On Wed, Feb 15, 2012 at 2:49 PM, Valentin V. Bartenev <ne@vbart.ru> wrote:
>
>> On Wednesday 15 February 2012 22:53:56 adam estes wrote:
>> > The problem is that its not going to be just /admin
>> >
>> > There are around 10 urls defined.
>> >
>> > I tried
>> >
>> > location ~ ^/django(?P<django_path>.*?)$ {
>> > uwsgi_param PATH_INFO $django_path;
>> > uwsgi_pass 127.0.0.1:9001;
>> > include uwsgi_params;
>> > }
>> >
>> >
>> > Which according to RegSkinner, would match anything after /django
>> >
>> > But this did not work. Its still passing the django parth. What do I do?
>> >
>>
>> Have you looked at your "uwsgi_params" file which you include in the
>> location?
>> So I expect that it sets one more PATH_INFO param to different value.
>>
>> wbr, Valentin V. Bartenev
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewriting Base URL when passing

adam estes February 15, 2012 12:34PM

Re: Rewriting Base URL when passing

António P. P. Almeida February 15, 2012 12:46PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 01:10PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 01:56PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 02:50PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 03:08PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 03:16PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 03:36PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 03:42PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 03:44PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 04:20PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 04:24PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 04:40PM

Re: Rewriting Base URL when passing

adam estes February 15, 2012 04:42PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 05:14PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 05:58PM

Re: Rewriting Base URL when passing

Valentin V. Bartenev February 15, 2012 03:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
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