PDA

View Full Version : http + https in same time ?


legija
05-31-2010, 10:41 AM
Hi,

Due to strange rules in some islamic countries, my forum gets blocked on regular port.
However, port 443 is open, and users can access the url without problems.
But, for some reason it will not work properly, due to absolute/relative path problem.

https gets loaded, but without pictures and other content, just pure text.

If i remember well, this used to work ok before upgrading to VB 4.0, even on different domain.
I used different domain as alternative to those guys who live in "proxy" states.

Now, i can get opened the forum on different domain, but clicking any link will lead me to the main domain url.

How do i solve this and where ? I need to force forum to use relative path!

Thank You.

kawe
05-31-2010, 01:05 PM
Just make if user going to http " SHOW some NOTICE redirect to HTTPS "

snakes1100
05-31-2010, 01:35 PM
A redirect has nothing to do with his issue of not showing images.

As you provide no link to your site for anyone to help trouble shoot your issue, provide more details about your site.

Does the site have a valid cert?
Is their a valid 443 host call setup in your web server conf file?
Is your site serving your style from a file?

legija
05-31-2010, 06:46 PM
The SSL certificate is valid, though its of course self signed.

As said, its absolute/relative path problem, and i have no idea how to resolve this. :(

http (http://www.unlockforum.com)

https (https://www.unlockforum.com)

Depending how i set homepage URL in settings, it changes behavior with images and media.
I can not say for sure, but this problem appears with vb 4.0 and it was not present before.

--------------- Added 1275337204 at 1275337204 ---------------

Ok, it seem to be to solved now.

- I just left empty space in URL fields
- Set the friendly URL stuff to basic and standard

It works now. THough IE keep popping up with "do you want secure and non secure bla bla".
Its okay in FF and Chrome.

snakes1100
05-31-2010, 08:20 PM
Interesting, you shouldn't have to leave that field blank to make it work.

Are you sure the 443 call in the host file is correct?

legija
06-01-2010, 09:48 AM
Everything is fine on server side. Main point is, that if you fill out "forum url", forum will use the absolute path, instead of relative one. Thus, after you open https url, next click will lead you to regular http link.

Angel-Wings
06-01-2010, 11:32 AM
Did you put maybe http://www.example.org in your Forum URL in the VB Options ? Try removing the "http://" that protocols aren't enforced when links are created.

kawe
06-01-2010, 04:20 PM
The SSL certificate is valid, though its of course self signed.

As said, its absolute/relative path problem, and i have no idea how to resolve this. :(

http (http://www.unlockforum.com)

https (https://www.unlockforum.com)

Depending how i set homepage URL in settings, it changes behavior with images and media.
I can not say for sure, but this problem appears with vb 4.0 and it was not present before.

--------------- Added 01 Jun 2010 at 07:20 ---------------

Ok, it seem to be to solved now.

- I just left empty space in URL fields
- Set the friendly URL stuff to basic and standard

It works now. THough IE keep popping up with "do you want secure and non secure bla bla".
Its okay in FF and Chrome.

where your green bar ?

legija
06-02-2010, 07:15 AM
@Angel-Wings

That doesnt work either. In fact it does work in firefox, but not in IE7, 8 and Chrome.
Now i see that IE7 also does not work properly with url field empty, so it seems there is no way to fix this problem at the moment.

@kawe

What green bar ?

snakes1100
06-02-2010, 09:37 PM
whats in your 443 vhost block in your web server programs conf file?

legija
06-03-2010, 12:08 PM
Nothing wrong with conf file.

Problem is with absolute path used by forum software. It serves images and media files using absolute path, not the relative one.