alias and subdomains doesn't work !

Discussion in 'Installation/Configuration' started by hugolambert, Feb 11, 2010.

  1. hugolambert

    hugolambert New Member

    Hi all,
    a second post regarding my difficult migration toward ispconfig, (which is yet an excellent service) but all my alias and subdomains doesn't work, and there is not error logs in the related log file...
    I checked my vhost conf file and I have this at the end :

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^files.hyperbios.fr [NC]
    RewriteRule ^/(.*)$ /files/$1 [R

    So it should redirect me to the files directory.

    But... nothing, and no error log...

    ????

    Thank's by advance
     
  2. hugolambert

    hugolambert New Member

    error log

    actually, I have in the apache log this error : client sent HTTP/1.1 request without hostname
     
  3. hugolambert

    hugolambert New Member

    actually there is the "ServerAlias files.hyperbios.fr" written as well, but apache doesn't recognize it. I'm really annoyed by this, no clue... help!!!:confused:
     
  4. onkela

    onkela New Member

    .

    hey.

    Ye i am having theese problems to. even on a clean install "Perfect Server Ubuntu 9,10"

    i went to the panel and created a domain & subdomain (subdomain as its own domain) and domain.com works fine but subdomain get redirected to domain.com and nothing to see in the logs at all.

    other_vhosts_access.log
    Code:
    domain.com:80 my.wan.ip.0 - - [11/Feb/2010:16:48:53 +0100] "GET / HTTP/1.1" 304 209 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Chrome/5.0.323.0 Safari/533.1"
    
    im pretty much stuck there.. hope anyone has a good idea for this?

    Regards
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    @onkela: Subdomains get always directed to the website of the main domain unless you added a redirection, thats the purpose of this function. If you want to have a own vhost and directory for the subdomain, then create it as new domain and not subdomain. Also make sure that you created a DNS A-Record for this subdomain too.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you created a DNS A-Record for this subdomain.
     
  7. onkela

    onkela New Member

    Yes till i have created as a domain on its own. the domain does have its own vhost file and stuff like that. pretty much like the main domain.

    and my dns-server is using wildcards to.

    A:
    domain.com -> ip
    *.domain.com -> ip

    C:
    www.domain.com

    regards
     
  8. hugolambert

    hugolambert New Member

    Till

    First thank's for all the help you provide Till. ;)
    But how to create a a-dns record?
    The dns parameters are managed by my hosting company.
    But I found a temporary solution : I created a cname on my hosting company panel and put the rewriting rules in the htaccess but I'm looking forward for a better way to do it...
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you do not have auto subdomain *. enabled in the main website. Otherwise this would cahtch incoming requests for the subdomain too and redirect it to the main website.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The solution was to create the cname (or an a-record as I suggested). Putting the rewrite rules in .htaccess is not nescessary and you should undo this.
     
  11. onkela

    onkela New Member

    the main does only have www in auto-subdomain i think i been all around on this one and even tryed a fresh install on a diffrent server and diffrent isp non of it seems to do the trick.

    The clean install was also done by the Perfect Server Ubuntu 9,10 (nothing else is added).
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Then ist mots likely not related to the setup, its a dns problem. Remove the wildcard dns record and add a dns a-record for this subdomain. Then wait about 24 hours.
     
  13. hugolambert

    hugolambert New Member

    ok

    Ok, thank's for the advice. Do you know if I can set up theses parameters directly in ISPConfig ? Because that's something I usually do on my hosting administration panel... (OVH)
     
  14. onkela

    onkela New Member

    hey. Im sorry to bother u again.

    Ive been in a dialog whit my dns providers and they have confirmed that dns is fully working and points to my ip as it should and every thing is fine.

    Except for the fact that apache some how get the calls to my subdomains? does anyone else have tried this or anything cuz its a real pain in tha ...

    and ofc. thx for ur help so fare.

    Regards
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Subdomains are working fine in ispconfig. Post the real domain name and the vhost config file.
     
    Last edited: Feb 16, 2010

Share This Page