This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Let's Encrypt redirect error
#1
Let's Encrypt redirect error
I tried Let's encrypt tutorial for one of my domains. After I finished, bobses.eu shows Sentora login screen instead my website content... I don't know why, but the httpd-vhosts.conf file looks like below:

Code:
# DOMAIN: bobses.eu
<virtualhost xxx.xxx.xxx.xxx:443>
ServerName bobses.eu
ServerAlias  www.bobses.eu
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/bobses_eu"
php_admin_value open_basedir "/var/sentora/hostdata/zadmin/public_html/bobses_eu:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mk$
ErrorLog "/var/sentora/logs/domains/zadmin/bobses.eu-error.log"
CustomLog "/var/sentora/logs/domains/zadmin/bobses.eu-access.log" combined
CustomLog "/var/sentora/logs/domains/zadmin/bobses.eu-bandwidth.log" common
<Directory "/var/sentora/hostdata/zadmin/public_html/bobses_eu">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)
SSLEngine on

SSLProtocol ALL -SSLv2 -SSLv3

SSLHonorCipherOrder On

SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS

SSLCertificateFile /etc/letsencrypt/live/bobses.eu/cert.pem

SSLCertificateKeyFile /etc/letsencrypt/live/bobses.eu/privkey.pem

SSLCertificateChainFile /etc/letsencrypt/live/bobses.eu/chain.pem

# Keeping bellow for future upgrades.

# Requires Apache >= 2.4
SSLCompression off

</virtualhost>
# END DOMAIN: bobses.eu
################################################################



# DOMAIN: bobses.eu
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName bobses.eu
ServerAlias www.bobses.eu
ServerAdmin zadmin@localhost
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: bobses.eu

Can someone help me? 
There is another easy method for SSL? 

Thanks.
Reply
Thanks given by:
#2
RE: Let's Encrypt redirect error
Instead of the port forward you can try a .htaccess file in bobses_eu root folder:

Code:
RewriteEngine on

# Force SSL - Always first!
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://bobese.eu/$1 [R,L]
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: Let's Encrypt redirect error
I tried, but didn't work. Sad Thanks anyway.

Edit: Also, I tried this with cert files from startssl.com and I received same redirect to Sentora login form after Vhost was altered and saved. 
I really don't know what to do...
Reply
Thanks given by:
#4
RE: Let's Encrypt redirect error
Is your panel login SSL?
To me, it is more important for your panel login to be secure than a blog Huh  Just my opinion.

Blogs rarely pass any information that needs to be encrypted while everything related to your panel should be encrypted to ensure privacy of logins, emails, databases, etc.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
RE: Let's Encrypt redirect error
Yes, I know and I agree with you. But Google wants more security, so the company announced that 2017 will be the year of SSL.

So, because of Google, I want to install SSL on all my wesbites. I have started with my personal blog, but no success until now.

Quote:Starting January 2017, Chrome 56 will label HTTP pages with password or credit card form fields as "not secure," given their particularly sensitive nature.
In following releases, we will continue to extend HTTP warnings, for example, by labelling HTTP pages as “not secure” in Incognito mode, where users may have higher expectations of privacy. Eventually, we plan to label all HTTP pages as non-secure, and change the HTTP security indicator to the red triangle that we use for broken HTTPS.
From here.

I still need help with SSL and Sentora. Smile
Reply
Thanks given by:
#6
RE: Let's Encrypt redirect error
I see, I think I remember reading that a while back also.

Would make more sense to include SSL certificates when you buy a domain LOL

Ok, then I suggest you encrypt your panel login first, then your blog. This was how I have done it for myself and others in the past Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#7
RE: Let's Encrypt redirect error
I'll try your suggest in the next few days. I'll be back! Smile
Thanks!

Edit: something is wrong - I tried to install SSL only to Sentora Login with Let's Encrypt (as is described here), but I received the following error when I tried to access all my domains from VPS (not only to Sentora Login):

Quote:400 Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

It's not working nor with https://panel.my_domain.ro.
Reply
Thanks given by:
#8
RE: Let's Encrypt redirect error
PM me your server's root SSH details and I will see whats up. Most people have a typo or miss a step.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#9
RE: Let's Encrypt redirect error
I tried again and rerun step by step the tutorial with same result: 400 Bad request.
I have a backup of /etc/sentora/configs/apache/httpd-vhosts.conf and I can restore the VPS in seconds.
Reply
Thanks given by:
#10
RE: Let's Encrypt redirect error
Seems that Varnish messed up Let's Encrypt installation. I use now a fresh CentOS 7 and Let's Encrypt is installed on panel login and my blog. Smile
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 6 ,828 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 28 ,352 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 1 ,594 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)