- Affected Version
- WoltLab Suite 3.1
Hi good evening,
So I went over google and clicked a link back to my website which is teenhut.net. I got this Google Chrome Unsecured site error. That made me try getting an SSL. So I signed up for Cloudflare and tried it's free SSL. So when I enable SSL and forced redirect to HTTPS, it works fine for my homepage but not for the internal pages. All Internal Pages, board page or thread pages throw up Nginx 404 Error. I then turned off from ACP the enable url rewrite feature that rewrites .index.php?Thread name to /thread/thread name and the site was working fine.
So it seems there is some url re write issue that needs fixing to make it work. When I turn off SSL or say http to https redirect force from cloudflare, my site becomes unsecured but all links are working.
Let me share my nginx conf:
server {
listen 80;
server_name teenhut.net;
return 301 $scheme://www.teenhut.net$request_uri;
}
server {
server_name teenhut.net www.teenhut.net;
access_log /home/nginx/domains/teenhut.net/log/access.log combined buffer=256k flush=60m;
error_log /home/nginx/domains/teenhut.net/log/error.log;
root /home/nginx/domains/teenhut.net/public;
# prevent access to ./directories and files
location ~ (?:^|/)\. {
deny all;
}
location ~ ^/([a-z]+/)?(templates|lib) {
return 403;
}
rewrite ^/forums/117-gay/ /forums/167-gay/ permanent;
rewrite ^/forums/162-lesbian/ /forums/168-lesbian/ permanent;
rewrite ^/forums/161-bisexual/ /forums/166-lgbbt/ permanent;
#VBSEO to Vbulletin Rewrite Rules
rewrite [^/]+/([0-9]+)-[^/]+\.html /showthread.php?t=$1 permanent;
location / {
index index.php;
try_files $uri $uri/ /index.php?$uri&$args;
}
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
#include /usr/local/nginx/conf/errorpage.conf;
include /usr/local/nginx/conf/vts_server.conf;
}
Display More
I would have assumed some issue related to cloudflare but when I turn off the Enable URL rewrite from ACP, the site works fine. So somewhere the rewrite and HTTPS is not going well together and with some editing of Nginx Conf, it should get fixed.
Please advice how to fix it. I really would like to get SSL or else many of my visitors are running away with the unsecure message they are getting.
Thanks,
Mayank