Apache mod_ssl http to https
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've installed OTRS 6 on CentOS7 to exlpore it's features and I struggle to make it available via https
. It installs Apache, and I have installed the mod_ssl module, created a self-signed certificate and modified the ssl.conf
file to point to the private key and the certificate file. When I access the web page via https://server/otrs/index.pl I get the self-signed certificate warning and I'm able to access it but I can still access it via HTTP
. Few google searches later I'm still not able to prevent or re-direct all HTTP
requests to https
. I've found this article Using an SSL certificate with OTRS and it says to put the following lines in the HTTP virtual host configuration:
RewriteEngine On
RewriteCond %HTTPS off
RewriteRule (.*) https://%HTTP_HOST%REQUEST_URI
But the problem is that in my ssl.conf there is no section for HTTP virtual host, I can see only one for HTTPS <VirtualHost_default_:443
What am I doing wrong? Any help is much appreciated!
apache-httpd
 |Â
show 13 more comments
up vote
0
down vote
favorite
I've installed OTRS 6 on CentOS7 to exlpore it's features and I struggle to make it available via https
. It installs Apache, and I have installed the mod_ssl module, created a self-signed certificate and modified the ssl.conf
file to point to the private key and the certificate file. When I access the web page via https://server/otrs/index.pl I get the self-signed certificate warning and I'm able to access it but I can still access it via HTTP
. Few google searches later I'm still not able to prevent or re-direct all HTTP
requests to https
. I've found this article Using an SSL certificate with OTRS and it says to put the following lines in the HTTP virtual host configuration:
RewriteEngine On
RewriteCond %HTTPS off
RewriteRule (.*) https://%HTTP_HOST%REQUEST_URI
But the problem is that in my ssl.conf there is no section for HTTP virtual host, I can see only one for HTTPS <VirtualHost_default_:443
What am I doing wrong? Any help is much appreciated!
apache-httpd
Try this rule:RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
This should be in the.htaccess
file and you should have a lineRedirect permanent / https://<your_site_name>/
in the<VirtualHost *:80></VirtualHost>
block in your site conf file
â George Udosen
Jan 14 at 12:30
.htaccess - it's not there
â adam86
Jan 14 at 13:10
Place it here/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differently
â George Udosen
Jan 14 at 13:14
 |Â
show 13 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've installed OTRS 6 on CentOS7 to exlpore it's features and I struggle to make it available via https
. It installs Apache, and I have installed the mod_ssl module, created a self-signed certificate and modified the ssl.conf
file to point to the private key and the certificate file. When I access the web page via https://server/otrs/index.pl I get the self-signed certificate warning and I'm able to access it but I can still access it via HTTP
. Few google searches later I'm still not able to prevent or re-direct all HTTP
requests to https
. I've found this article Using an SSL certificate with OTRS and it says to put the following lines in the HTTP virtual host configuration:
RewriteEngine On
RewriteCond %HTTPS off
RewriteRule (.*) https://%HTTP_HOST%REQUEST_URI
But the problem is that in my ssl.conf there is no section for HTTP virtual host, I can see only one for HTTPS <VirtualHost_default_:443
What am I doing wrong? Any help is much appreciated!
apache-httpd
I've installed OTRS 6 on CentOS7 to exlpore it's features and I struggle to make it available via https
. It installs Apache, and I have installed the mod_ssl module, created a self-signed certificate and modified the ssl.conf
file to point to the private key and the certificate file. When I access the web page via https://server/otrs/index.pl I get the self-signed certificate warning and I'm able to access it but I can still access it via HTTP
. Few google searches later I'm still not able to prevent or re-direct all HTTP
requests to https
. I've found this article Using an SSL certificate with OTRS and it says to put the following lines in the HTTP virtual host configuration:
RewriteEngine On
RewriteCond %HTTPS off
RewriteRule (.*) https://%HTTP_HOST%REQUEST_URI
But the problem is that in my ssl.conf there is no section for HTTP virtual host, I can see only one for HTTPS <VirtualHost_default_:443
What am I doing wrong? Any help is much appreciated!
apache-httpd
edited Jan 14 at 17:03
George Udosen
1,112318
1,112318
asked Jan 14 at 11:24
adam86
12728
12728
Try this rule:RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
This should be in the.htaccess
file and you should have a lineRedirect permanent / https://<your_site_name>/
in the<VirtualHost *:80></VirtualHost>
block in your site conf file
â George Udosen
Jan 14 at 12:30
.htaccess - it's not there
â adam86
Jan 14 at 13:10
Place it here/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differently
â George Udosen
Jan 14 at 13:14
 |Â
show 13 more comments
Try this rule:RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
This should be in the.htaccess
file and you should have a lineRedirect permanent / https://<your_site_name>/
in the<VirtualHost *:80></VirtualHost>
block in your site conf file
â George Udosen
Jan 14 at 12:30
.htaccess - it's not there
â adam86
Jan 14 at 13:10
Place it here/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differently
â George Udosen
Jan 14 at 13:14
Try this rule:
RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Try this rule:
RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
This should be in the
.htaccess
file and you should have a line Redirect permanent / https://<your_site_name>/
in the <VirtualHost *:80></VirtualHost>
block in your site conf fileâ George Udosen
Jan 14 at 12:30
This should be in the
.htaccess
file and you should have a line Redirect permanent / https://<your_site_name>/
in the <VirtualHost *:80></VirtualHost>
block in your site conf fileâ George Udosen
Jan 14 at 12:30
.htaccess - it's not there
â adam86
Jan 14 at 13:10
.htaccess - it's not there
â adam86
Jan 14 at 13:10
Place it here
/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differentlyâ George Udosen
Jan 14 at 13:14
Place it here
/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differentlyâ George Udosen
Jan 14 at 13:14
 |Â
show 13 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f417001%2fapache-mod-ssl-http-to-https%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Try this rule:
RewriteRule ^(.*) https://%HTTP_HOST/$1 [R=301,L]
â George Udosen
Jan 14 at 12:20
Thank you. Should I put it in the ssl.conf file under <VirtualHost_default_:443 ?
â adam86
Jan 14 at 12:23
This should be in the
.htaccess
file and you should have a lineRedirect permanent / https://<your_site_name>/
in the<VirtualHost *:80></VirtualHost>
block in your site conf fileâ George Udosen
Jan 14 at 12:30
.htaccess - it's not there
â adam86
Jan 14 at 13:10
Place it here
/etc/httpd/conf.d/zzz_otrs.conf
from docs I have seen, yours might be called differentlyâ George Udosen
Jan 14 at 13:14