Francis Daly
November 21, 2012 05:20PM
On Wed, Nov 21, 2012 at 10:25:11PM +0100, Monthadar Al Jaberi wrote:
> On Wed, Nov 21, 2012 at 7:53 PM, Francis Daly <francis@daoine.org> wrote:

Hi there,

> I changed this line:
>
> proxy_set_header Host $host;
>
> to:
>
> proxy_set_header Host $host:$proxy_port;

I'd undo that change. It effectively means that you are bypassing nginx
and going to fossil directly, which is probably not what you want.

> So this redirection is just before calling fossil?

No. The redirection is what the fossil server returned.

Your nginx configuration was (almost) correct. I suggest to put it back
the way it was, and then start configuring fossil to be reverse-proxied.

> Where do the extra '/' come from?

You changed "location /fossil/" to "location /fossil". The difference
there is the extra / here.

> I read a litte more and found a directive called
> rewrite, should I use it somehow to remove the xtra slash added?

No.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx + fossil configuration problem

Monthadar Al Jaberi November 20, 2012 04:30PM

Re: nginx + fossil configuration problem

Francis Daly November 20, 2012 06:26PM

Re: nginx + fossil configuration problem

Monthadar Al Jaberi November 21, 2012 01:18PM

Re: nginx + fossil configuration problem

Monthadar Al Jaberi November 21, 2012 01:34PM

Re: nginx + fossil configuration problem

Francis Daly November 21, 2012 01:56PM

Re: nginx + fossil configuration problem

Monthadar Al Jaberi November 21, 2012 04:26PM

Re: nginx + fossil configuration problem

Monthadar Al Jaberi November 21, 2012 04:46PM

Re: nginx + fossil configuration problem

Francis Daly November 21, 2012 05:44PM

Re: nginx + fossil configuration problem

Francis Daly November 21, 2012 05:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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