Results 1 to 6 of 6
Hybrid View
-
01-17-2007, 04:38 PM #1Newbie
- Join Date
- Aug 2006
- Posts
- 21
Fordward specific port http request to https
Hello,
Anyone know how to catch request over http and forward them to https, I have VPS/Plesk and I was wondering how to do that.
Also, what do you think about having a sub domain on each client domain to access plesk, likes this:
http://cp.clientdomain.com --> https://clientdomain.com:8443
thanks
-
01-18-2007, 12:36 PM #2Web Hosting Evangelist
- Join Date
- Apr 2004
- Location
- Australia
- Posts
- 456
I don't know about the forwarding part..
As for sub-domains, how about an alias like CPanel uses to forward users when they type in /cpanel after there domain? As I don't think plesk has this? or does it?
I don't have much experience with Plesk, if there is a global Apache config you could edit then it would be quite easy I imagine.
-
01-18-2007, 01:28 PM #3LORD OF THE RINGS
- Join Date
- Dec 2005
- Location
- Internet
- Posts
- 1,352
Originally Posted by scribby
Also, have a look on mod_proxy that will help you to do port forwarding. See http://httpd.apache.org/docs/2.0/mod/mod_proxy.html for more informations.
-
01-18-2007, 04:43 PM #4Newbie
- Join Date
- Aug 2006
- Posts
- 21
If I use the .htaccess wouldn't I need to include a .htaccess file on each document root? I try to avoid that since clients apparently the first thing they do when they log into the document root is wipeout whatever is there.
thanks
-
01-18-2007, 01:26 PM #5Web Hosting Master
- Join Date
- Apr 2003
- Location
- San Jose, CA.
- Posts
- 1,624
Make a .htaccess file in the document root for cp.clientdomain.com
containing:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^cp.clientdomain.com [OR]
RewriteRule ^(.*) https://clientdomain.com:8443
or something similar to that... I havent slept in a day and just did that from guessing.Last edited by Lightwave; 01-18-2007 at 01:30 PM.
-
01-18-2007, 05:51 PM #6Newbie
- Join Date
- Jan 2007
- Location
- Tampa, FL
- Posts
- 13
The .htaccess would be a part of the doc root of the subdomain -- not the doc root of the clients domain.
Chris@NORTHSTARCOLO.COM
North Star Colocation LLC
http://northstarcolo.com
Dedicated Servers | Colocation | Managed Services