+ Reply to Thread
Results 1 to 16 of 16

Thread: Sub-domains and redirects simplify web access

  1. #1
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Sub-domains and redirects simplify web access

    Find out, in this new article on the WebHostingBuzz Blog:
    http://www.webhostingbuzz.com/blog/2...fy-web-access/

    All blog posts are available at: http://www.webhostingbuzz.com/blog/
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  2. #2
    Tony's Avatar
    Tony is offline Bad Influence
    Join Date
    Apr 2007
    Location
    West Virginia Blue Ridge
    Posts
    604
    Servers
    SS3
    WHB Points this Month
    15.00
    WHB Points
    175.00
    Thanks
    2
    Thanked 8 Times in 8 Posts

    Default

    Once you realize how convenient redirected sub-domains can be, and how easy they are to create, I’m sure you’ll think of plenty of uses
    Heh. Or not.

    We merged another site into ours years ago and I briefly thought about a subdomain then. But it's never made that much sense to me. I just put it in a subfolder so it's as easy to use the one as the other.

    subdomain version: sca.shannondale.org
    'normal' version: shannondale.org/sca

  3. #3
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Sure, that's one example of a short original URL. They're not all like that. Plus, I can say from experience that some clients think it looks cool and professional that their temp. site is at client.mydomain.com, rather than mydomain.com/client
    Last edited by Alan B; 06-06-2011 at 10:49 PM.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  4. #4
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Tell you what Alan, this just ain't working for me, the redirection is set up as specified, but the redirect still goes to domain.com:2095 without any path at all.

  5. #5
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    That's strange. I tested this myself on my server, and I've done the same thing on previous servers.

    Why don't you copy and paste precisely the text you're entering in the fields, and also post a screenshot. It may be you're making a key error or something that you're missing.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  6. #6
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    For a start, that's the wrong URL. That is the port for SSL, so the URL should begin with https, as in:
    https://wtixfm.com:2096/3rdparty/roundcube/

    Also, your DNS is misconfigured. That may or may not be related to your redirect issue, but it's always a good idea to get all DNS correct before trying to solve other errors.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  7. #7
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DNS from here:
    http://www.webhostingbuzz.com/forum/...formation.html

    How is it misconfigured?

    Also, attempting to use HTTPS fails to connect. Changing to 2095 also fails.

  8. #8
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Using https fails where?
    If you go to https://wtixfm.com:2096/3rdparty/roundcube/ in your browser, do you reach the login page?
    If it's just the redirect that fails, how does it fail (i.e. what happens)?

    Re the DNS, I thought you were on a reseller server, so if you're on a standard shared server then ignore my comment.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  9. #9
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I AM on a reseller server.

    The direct link succeeds.

    In the webmail folder for the sub-domain, without HTTPS:[code]
    RewriteCond %{HTTP_HOST} ^webmail.wtixfm.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.webmail.wtixfm.com$
    RewriteRule ^/?$ "http\:\/\/wtixfm\.com\:2095\/3rdparty\/roundcube\/" [R=301,L]
    [/code]

    With HTTPS:[code]
    RewriteCond %{HTTP_HOST} ^webmail.wtixfm.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.webmail.wtixfm.com$
    RewriteRule ^/?$ "https\:\/\/wtixfm\.com\:2096\/3rdparty\/roundcube\/" [R=301,L]
    [/code]

    AND NOW FOR THE PECULIAR!

    Ya see that link under Document Root that loads the specified folder up in the filemanager? Well, the folder it loads does not have the .htaccess file in it, and seems to be called bmail. Me thinks it be a tad borked.

  10. #10
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    It sounds as though you may need to contact support.

    As for DNS, since you're on a reseller server why not use personal nameservers? Then you could have A records in the nameservers, which would be a more reliable setup. Plus, personal nameservers makes it much easier to move several domains if you ever move to a different server.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  11. #11
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    BRB, site's been hacked, ...

  12. #12
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm now having issues with connecting to that webmail sub-domain on a irregular basis.

  13. #13
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Well, if the site was hacked then all kinds of nasty changes could have been made. Unless you have active content, such as a customer database or forum, I would lock down new better account names and passwords and rebuild the account from scratch.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  14. #14
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did a bunch of account name and password changes on the site, but it does worry me that someone found an exploitable hole in how Mambo works to get a file replacement action to occur to begin with, Mambo doesn't write to the PHP file system.

  15. #15
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    It's become darned difficult to stay current on all patches and potential security exploits on CMS and other packages.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  16. #16
    Colin's Avatar
    Colin is offline Wait, What?
    Join Date
    Aug 2007
    Posts
    175
    WHB Points this Month
    0.00
    WHB Points
    5.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I swear, am tempted to forget about all the fancy stuff and demand a Dos Server!

+ Reply to Thread

Posting Permissions

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