Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17763

Playing with HTTP->HTTPS redirection with Apache, when suddenly...

$
0
0

Hello,

I have an interesting problem with Apache running on Ubuntu. I do not know much about it in depth, but I am currently running GLPI as well as OCS for ticketing/inventory. Both were running fine until I decided to try and apply our company's SSL certificate. I've done this before on a CentOS machine, so I wanted to be daring and try it on other machines.

First off, I kinda got the redirection from HTTP to HTTPS "working", in that it redirected but it timed out and didn't show the page. To do this, I modified the /etc/apache2/conf.d/glpi configuration file to include virtual hosts (one for *:80 --> redirected to one for *:443). That was about as far as I got. It didn't work in this case, so I am trying to get it back to where it was....

That's the interesting part now. I commented out all modifications on all configuration files to revert back to a working system, but it still redirects! When I go to glpi.company.com/glpi, it still redirects to HTTPS! I have no idea why. I have checked all the configuration files I could (unless I'm missing some) to see if there were any trailing commands, but nope. Anybody have ideas as to what's going on? Thanks!

EDIT: I appreciate the help in the matter. I was able to get it working after learning about the NameVirtualHost directive. It's just one small step toward understanding this stuff.

submitted by zanity84
[link][18 comments]

Viewing all articles
Browse latest Browse all 17763

Trending Articles