Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Web hosting setup

  • 05-03-2011 01:07PM
    #1
    Registered Users, Registered Users 2 Posts: 2,699 ✭✭✭


    Hi - this is a question about setup of web server/ DNS records etc. Forum rules ban discussing any of hosting companies (link)


    what i want setup is if i go to any unregistered subdomain of my domain that it will be redirected to the main page (like if you goto asdfddddd.boards.ie it will be redirected to the main page)

    I am on a shared IP hosting plan.
    i have my a-record setup for *.domain.com to point to my IP address.
    The webhost web interface doesnt allow for a ServerAlias to be setup to point
    ServiceAlias *.domain.com domain.com
    or
    ServerAlias *.domain.com [instant access type domain on their URL]

    When i contact the host company they say that the <VirtualHost> can't be updated with this.

    Does anyone know if it is possible to set up the ServerAlias in this way ? or does it need to be on a Dedicated IP address?


Comments

  • Registered Users, Registered Users 2 Posts: 6,655 ✭✭✭daymobrew


    Have you asked your hosting company if it is possible?


  • Registered Users, Registered Users 2 Posts: 2,699 ✭✭✭samhail


    yeah i have.


  • Registered Users, Registered Users 2 Posts: 6,655 ✭✭✭daymobrew


    samhail wrote: »
    yeah i have.
    What did they say?


  • Registered Users, Registered Users 2 Posts: 2,699 ✭✭✭samhail


    I said in my original post, they said that it can't be done.
    Said i would need a vps.
    But I read online that it is possible but hosts don't do it cos they would be losing money on it.


  • Registered Users, Registered Users 2 Posts: 6,655 ✭✭✭daymobrew


    I am sorry that I did not read that line.
    I would therefore assume that it cannot be done on your current host.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,699 ✭✭✭samhail


    yeah Thanks.
    Was trying to find out seperately to confirm.
    Will have to consider moving my few sites from them so.


  • Registered Users, Registered Users 2 Posts: 115 ✭✭Boskonay


    Dedicated IP will do it...


  • Registered Users, Registered Users 2 Posts: 2,699 ✭✭✭samhail


    I know that ! :) but i was asking about on a shared IP.
    Ill try it sometime.

    not as pushed on this setup anymore. thanks for the replies


  • Registered Users, Registered Users 2 Posts: 912 ✭✭✭chakotha


    I might be way off but but if mod_rewrite is allowed can you put a rewrite rule into a .htaccess file and upload it to the document root?

    (not sure of the regular expression syntax)

    something like
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^[reg exp for anything]yourdomain.com [nc]
    rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]

    ?

    and you'd have to send the valid sub-domains to the right place.


Advertisement