« Return to Thread: adding my_app_name to action paths

Re: adding my_app_name to action paths

by Mike Glen :: Rate this Message:

Reply to Author | View in Thread

J. Shirley wrote:
> It should happen automatically, provided you have set the
> "using_frontend_proxy" option.  Are you setting that correctly?
>
> -J
>
I have tried putting using_frontend_proxy 1 in myapp.conf and also
__PACKAGE__->config( name => 'MyApp', 'using_frontend_proxy' => 1 ) in
MyApp.pm
Neither of those seem to work. Are these the wrong way to set it?
I haven't been able to find the documentation for this

this is what i have in my nginx.conf
        location /my_app/ {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_pass  http://localhost:3000/;
        }

thanks


_______________________________________________
List: Catalyst@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

 « Return to Thread: adding my_app_name to action paths