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.

Redirect to https
#3
RE: Redirect to https
Hi

I used the following
http://forums.sentora.org/showthread.php?tid=2535

I have done the steps.

here is the /etc/sentora/configs/apache/httpd-vhost.conf


Code:
# DOMAIN: xxx.co.za
<virtualhost *:443>
ServerName xxx.co.za
ServerAlias  www.xxx.co.za
ServerAdmin jidewet@xxx.co.za
DocumentRoot "/var/sentora/hostdata/xxx/public_html/xxx_co_za"
php_admin_value open_basedir "/var/sentora/hostdata/xxx/public_html/xxx_co_za:/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_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/domains/xxx/xxx.co.za-error.log"
CustomLog "/var/sentora/logs/domains/xxx/xxx.co.za-access.log" combined
CustomLog "/var/sentora/logs/domains/xxx/xxx.co.za-bandwidth.log" common
<Directory "/var/sentora/hostdata/xxx/public_html/xxx_co_za">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
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)
# Alias for roundcube WebMail login
Alias "/webmail" "/etc/sentora/panel/etc/apps/webmail"
<Directory "/etc/sentora/panel/etc/apps/webmail/">
 Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
</Directory>
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/xxx.co.za/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxx.co.za/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/xxx.co.za/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
SSLCompression off
</virtualhost>
# END DOMAIN: xxx.co.za
################################################################



# DOMAIN: xxx.co.za
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName xxx.co.za
ServerAlias www.xxx.co.za
ServerAdmin jidewet@xxx.co.za
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: xxx.co.za
Reply
Thanks given by:


Messages In This Thread
Redirect to https - by etienne7702 - 03-09-2017, 07:25 PM
RE: Redirect to https - by TGates - 03-10-2017, 01:42 AM
RE: Redirect to https - by etienne7702 - 03-10-2017, 04:27 AM
RE: Redirect to https - by Ron-e - 03-10-2017, 04:35 AM
RE: Redirect to https - by etienne7702 - 03-10-2017, 04:42 AM
RE: Redirect to https - by TGates - 03-10-2017, 04:45 AM
RE: Redirect to https - by etienne7702 - 03-10-2017, 04:56 AM
RE: Redirect to https - by TGates - 03-10-2017, 05:15 AM
RE: Redirect to https - by etienne7702 - 03-10-2017, 05:28 AM
RE: Redirect to https - by TGates - 03-10-2017, 08:11 AM
RE: Redirect to https - by etienne7702 - 03-10-2017, 05:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
[HOW TO] How to secure your sentora panel with SSL (HTTPS) easy guide SupaYoshi 32 134 ,015 11-18-2016, 05:34 AM
Last Post: worksmarter
Roundcube Webmail https path pthalmann 0 4 ,895 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 5 Guest(s)