We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Having a lot of issues with https | Forum

Starn Ray
Starn Ray May 16 '16
I am experiencing A Lot of issues getting https setup.


first off this is a self hosted website, so i have full access to all of the files.

second off, i have tried the .htaccess configurations on the forums as well as having " define('OW_URL_HOME', 'https://domainname.com/'); "

i have tried varying forms of the " RewriteCond and RewriteRule " from other sources as well thus far nothing has worked.

i keep getting error stating the site has redirected to many times. (Chrome)

the server is a GNU-Linux Distro. 


any assistance at all would be greatly appreciated this is driving me mad. like a mad hatter.  


i have also tried this in my httpd.conf

<VirtualHost *:443>

ServerName domainname.com

DocumentRoot /rootof/website

SSLEngine on

SSLCertificateFile /pathto/cert/file.crt

SSLCertificateKeyFile /pathto/private/file.key

</VirtualHost>


I do run sub domains for WordPress and for a few game servers. and private webmail for the administrators. 

a example sub. blog.domainname.com

the blog.domainname.com actually works perfectly fine with than again it is not oxwall.

dave Leader
dave May 16 '16
Hi Starn, 


Which distribution are you using?

What kind of ssl cert do you have ?

The Forum post is edited by dave May 16 '16
Starn Ray
Starn Ray May 17 '16
i am using XAMPP php 5.6.21 due to issues with oxwall on php7. 

the host machine is running Ubuntu Server and SSL cert is provided by cloudflare. 

here is a screen shot of https without any settings. just default oxwall settings.



all sensitive information has been blacked out.


and when oxwall is configured to use https even with .htaccess configuration google chome says to many redirects. firefox just says it wasn't able to load the page


if i remember correctly the cloudflare keys are issued by Comodo ECC Domain validation.


everything on the server machine is in the latest standard stable lts so openssl is provided via ubuntu stable branch. i have automatic updates setup for security updates. 


i am trying to use ssl https for security. i noticed oxwall's official site uses the same key provider.  so i am at a loss here.

The Forum post is edited by Starn Ray May 17 '16
ross Team
ross May 18 '16
In short, all you need to do to enable ssl on your Oxwall site is change home uri in config.php file

- from http to https


Please revert the changes you did to httpd.conf file and .htaccess in terms of ssl

what do you have as your home uri in config.php file when you have what is displayed on the screenshot you provided? 

The Forum post is edited by ross May 18 '16
Starn Ray
Starn Ray May 24 '16
Ross, when i have all the default settings originally in the httpd.conf and .htaccess  

and strictly https://domainname.com   it only shows me "The Domainname.com Page isn't working domainname.com redirected you too many times.


define('OW_URL_HOME', 'https://domainname.com/');

is the only thing that has been changed. the screen shot was from it being configured as the is triggering the browser to not attempt to load

ross Team
ross May 25 '16
Starn, I see in the info you provided the port 443

What does it have to do with the case? Why did you indicate it in the httpd.conf file? When you indicated http://www.domain.com/ in config.php file, does your website work?

The Forum post is edited by ross May 25 '16
Starn Ray
Starn Ray May 26 '16
443 is ssl port. without 443 no ssl would work. at least according to cloudflare. and when it's http://www.domain.com/ it works perfectly fine. only https://www.domain.com is what has issues.


cloudflare explained how to use the ssl certificates via xampp/apache. and they stated to add a <virtualhost *:443>  because in the default configurations it's only got virtualhost *:80  which is not an secure port for the ssl layer.  so cloud flare said to add the 443 one and keep the port 80 one.  granted i commented the port 80 one completely out.

i do so each time i test another idea or suggestion to get working. thus far no one has been able to properly aid me. coming here was actually a last resort. 

The Forum post is edited by Starn Ray May 26 '16
ross Team
ross May 30 '16
Ok, try to put :443 port at the end of your url in config.php when you switch to ssl, see if that works for you. 
Starn Ray
Starn Ray Jun 9 '16
thus far still no luck. just errors out my browsers telling me to many redirects. 
ross Team
ross Jun 17 '16
Starn, can you pm me your cpanel access details and admin website access details, we'll take a look at the issue? 
IntrigU
IntrigU Jun 19 '16
In case if this is still an issue... Cloudflare works via re-configuring your site's CNAME. So their SSL will only work with www.yourdomian.com  and not yourdomian.com. 
dave Leader
dave Jun 19 '16
Great info Terry, thank you for sharing. :)
ross Team
ross Jun 20 '16
Terry +1 thanks for sharing. 
Starn Ray
Starn Ray Jun 21 '16
yeah i have tried www.mydomain.com
Starn Ray
Starn Ray Jun 25 '16
i've always have had cloudflare and my server and domain to use www.domain.com just because i like in my addresses 


ross Team
ross Jun 27 '16
Starn, regarding your message you sent me: 


What do you mean in a remote desktop session? 

Do you access via ssh? or what? 

Starn Ray
Starn Ray Jun 27 '16
mostly i use ssh but occasionally i'll use remote desktop for a gui for the administrators whom do not know how to use a terminal. 


oxwall is being hosted on ubuntu server with xampp.


the only thing i've not done is reinstall oxwall and reason being is because i have couple side websites. like blog.domain.com webmail.domain.com and couple others that all use HTTPS without issue. i have tried to disable these other sites as well to check if they was interfering with oxwall. 

ross Team
ross Jun 28 '16
Ok, Starn, send me you ssh access details, we'll take a look
falancas
falancas Jul 16 '17
What was the result?