1 (edited by Xzorg6 2008-03-12 19:11)

Topic: Extensions install failed

Hi,

I tried to install some extentions, but in my configuration that doesn't work.

Just after having confirmed the installation,
the URL https://mydomain/admin/extensions.php?install=dd_top_20_users
changes into http://IPADDRESS/admin/extensions.php?install=dd_top_20_users,
I'm logged out and the page show "You do not have permission to access this page."

Do I do all correctly?
Thanks

Re: Extensions install failed

Apparently that would be the function get_current_url () which does not post good information if I pass through a Web proxy SSL.

Re: Extensions install failed

Hmm, interesting
Are you using Apache?

Re: Extensions install failed

I'm using Apache 2.2.3 (web proxy) and Apache 2.2.4 (siteweb)

The variable $_SERVER['HTTPS'] doesn't return anything.
It even doesn't appear in the phpinfo()

And the variable $_SERVER["SERVER_PORT"] return 80 whereas I am well in https (443).

Re: Extensions install failed

Wait, how exactly is the proxying set up?

Re: Extensions install failed

I use an apache server [A] (which is hosting some websites) as proxy SSL to reach my extranet located on another machine [b] on the LAN.
Server [A] use mod_proxy and ssl
Apache mod_proxy can't connect to https, so [b] is http (80)

I want to test PunBB1.3 on my extranet. So URL is https://extranet.mydomain/... but PHP on [b] return that it's on http (80).

I hope that my explanations will have been said clearly.

Re: Extensions install failed

Ah, got it.
I don't think that's something we can fix, really: PunBB doesn't know that you're using mod_proxy from another computer or that your connection to the other computer uses SSL. It only knows about the connection made from the proxy to the machine running PunBB.

Re: Extensions install failed

Ok, in any case it was right to test, final PunBB1.3 will be on [A] wink

Why do you use the function get_current_url() to get the url and not the variable $base_url ?

Thanks

Re: Extensions install failed

We use get_current_url to store the URL as you're visiting in prev_url in the online table. Then, we can use prev_url for redirects.