1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Inexistent subdomain fallback

Discussion in 'Plesk for Linux - 8.x and Older' started by JulienI, Nov 24, 2009.

  1. JulienI

    JulienI Guest

    0
     
    Im running a VPS @ Media Temple but something is bothering me with my setup.

    Inexistant subdomains on all my domains revert back to the main domain, ex :

    (1) doesnotexist.example.com -> www.maindomain.com

    I would expect it to be something like :

    (2) doesnotexist.example.com -> www.example.com

    (3) or even better throw a not found or something equivalent.


    I've tried solutions involving modifying vhost.conf, but I find it cumbersome because it has to be done on every single subdomain. Surely theres a streamlined way to do this?

    Also, what is the recommended behavior between (2) & (3)?

    Thanks!
     
  2. Satoriya

    Satoriya Guest

    0
     
    You can create a wildcard subdomain for example.com domain http://kb.odin.com/en/2239
    that will serve as catch all subdomain for all non-existing subdomains.
     
  3. JulienI

    JulienI Guest

    0
     
    Hi, thanks for your answer, you can see its been a while since this thread was started, however its not really the solution I was hoping for.

    Its cumbersome to add that kind of wild card on all my domains, plus id rather have 404s since it messes up with GoogleMaps API. That means a lot of fiddling with apache config or htaccess's.

    This "Main domain" catch-all-even-on-other-domains wildcard must be set somewhere in the settings or there must be a global way to avoid this no? Im really stumped on this issue :(
     
  4. SoroushS

    SoroushS Guest

    0
     
    This answer dose not work
     
Loading...