Results 1 to 6 of 6

Hybrid View

  1. #1

    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

  2. #2
    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.

  3. #3
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    Quote Originally Posted by scribby
    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.
    Yes, alias like CPanel uses to forward users when they type in /cpanel after there domain. Basically, it creates a .htaccess rule with the redirection code. The same .htaccess rule will work with Plesk servers too (Since Plesk also uses the apache web server)

    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.

  4. #4
    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

  5. #5
    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.

  6. #6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •