HTTP(S) redirect on new Vserver ?Why?

6 posts / 0 new
Last post
#1 Tue, 03/17/2009 - 16:14
max

HTTP(S) redirect on new Vserver ?Why?

On any new Vserver i make on the shared ip, it is always forcing http(s)....

No htaccess No SSl selected when making the Vserver

So when I go to the new Vservers site it redirects to HTTPS and then it goes to the one host on the shared ip that does have SSL.

Go away SSL!

Tue, 03/17/2009 - 16:21
Joe
Joe's picture

I'm guessing there must be an included httpd configuration file that has this redirect. So, grep for any Redirect rules in the httpd configuration directory.

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:47
max

I can grep but not sure where to find the httpd config directory.

looked in here:
/etc/httpd/conf/httpd.conf

found:
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.mydomain.com
RewriteRule ^(.*) https://mydomain.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.mydomain.com
RewriteRule ^(.*) https://mydomain.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5

Sun, 06/07/2009 - 07:47
max

I can grep but not sure where to find the httpd config directory.

looked in here:
/etc/httpd/conf/httpd.conf

found:
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.mydomain.com
RewriteRule ^(.*) https://mydomain.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.mydomain.com
RewriteRule ^(.*) https://mydomain.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5

Tue, 03/17/2009 - 17:05
andreychek

There's also config files located in /etc/httpd/conf.d/, perhaps something in there is causing the redirect.
-Eric

Wed, 03/18/2009 - 13:18
max

My appoligies...looks like it is a joomla thing. I just made a new Vserver without joomla and no redirect...

Topic locked