Domain Alias problem

Discussion in 'Installation/Configuration' started by Epoxy, Oct 22, 2012.

  1. Epoxy

    Epoxy New Member

    Hi all,
    Sorry for my english, i'm french.
    I try unfortunely to configure an alias domain.
    Site1.com have a good forum
    Site2.com have a good onlineshop (prestashop 1.5)
    I just want shop.site1.com go to site2.com with the url shop.site1.com.

    I've tryed all solution see on google last 2 days, and i don't want to breack somethink like my pc lol.

    Please help !

    http://docs.ispconfig.org/creating-web-sites/alias-web-domains/ don't work with any flag, i stay on site1.com or redirected with the url site2.com

    shop.site1.com have a registration zone A (good?)

    Lot of thx !
     
  2. till

    till Super Moderator

    Login to ispconfig, Go to sites, click on aliasdomain and select "site2.com" as website and enter shop.site1.com in the alias field and click on save. Then add a a A-record "shop" to the zone "site1.com" in dns.
     
  3. Epoxy

    Epoxy New Member

    Sorry, but you explain the link posted on my first post. Don't work, i've tried all combinaison of this tool.

    Thx !
     
  4. till

    till Super Moderator

    Thats the correct procedure. Then ispconfig is either not installed correctly on your server or your dns record is not correct. Please post the real domains that you setup and the apache vhost configuration file of site2.com, the file is in /etc/apache2/sites-enabled if you use debian or ubuntu.
     
  5. Epoxy

    Epoxy New Member

    site1 is iphone-avenue.eu, the link for site2 is "La boutique" (boutique.iphone-avenue.eu) at the top of page, and the real site2 is zonefactory.eu (i work the theme !).

    Code:
    <Directory /var/www/zonefactory.eu>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <VirtualHost 94.23.38.74:80>
          DocumentRoot /var/www/zonefactory.eu/web
    
        ServerName zonefactory.eu
        ServerAlias *.zonefactory.eu
        ServerAlias *.boutique.iphone-avenue.eu boutique.iphone-avenue.eu
        ServerAdmin webmaster@zonefactory.eu
    
        ErrorLog /var/log/ispconfig/httpd/zonefactory.eu/error.log
    
    
        ErrorDocument 400 /error/400.html
        ErrorDocument 401 /error/401.html
        ErrorDocument 403 /error/403.html
        ErrorDocument 404 /error/404.html
        ErrorDocument 405 /error/405.html
        ErrorDocument 500 /error/500.html
        ErrorDocument 503 /error/503.html
    
        <Directory /var/www/zonefactory.eu/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
        <Directory /var/www/clients/client2/web2/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    
    thx a lot !
     
  6. till

    till Super Moderator

    Please remove / disable the wildcard subdomains and use subdomain www in the site settings. Wildcard subdomains can confuse apache and are bad for your search engine ranking anyway. The config is corrcet and the dns record seems to be ok as well.

    What is the exact problem that you have, content froa wrong server or content fromawrong site or no content at all? When I enter the url boutique.iphone-avenue.eu I get the content of a site, is this site hosted on your server.
     
  7. Epoxy

    Epoxy New Member

    The link boutique.iphone-avenue.eu don't go to zonefactory.eu, she stay on iphone-avenue.eu. I need to have this link on zonefactory.eu (multi-shop with domain name).
    I've put 'www' on alias domain, and the problem is the same :(

    iphone-avenue.eu is SEO and ranked only if no 'www'

    Thx
     
  8. till

    till Super Moderator

    Is the site iphone-avenue.eu on the same server and did you activate wildcard subdomain there as well? Then deactivate wildcard subdomain in the site iphone-avenue.eu because when you enable it there, all pageviews for all subdomains of the domain iphone-avenue.eu will get redirected there even if you add a aliasdomain to another site.
     
  9. Epoxy

    Epoxy New Member

    Ok, you resolv my problem, i'was afraid to touch a domaine & website where i've no problems with them. I've tryed somethink wrong friday, and the dns & google was down for iphone-avenue.

    Thank you very very much, i link this forum in my favorite. In france, we are far to be react than here.:p
     

Share This Page