Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Web hosting setup

Options
  • 05-03-2011 1:07pm
    #1
    Registered Users 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 Posts: 6,511 ✭✭✭daymobrew


    Have you asked your hosting company if it is possible?


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


    yeah i have.


  • Registered Users Posts: 6,511 ✭✭✭daymobrew


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


  • Registered Users 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 Posts: 6,511 ✭✭✭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 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 Posts: 115 ✭✭Boskonay


    Dedicated IP will do it...


  • Registered Users 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 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