DNS Redirection

Discussion in 'Site & Server Administration' started by riteshsanap, Jan 30, 2011.

  1. #1
    Hello ,
    First of all I don't Know were should I have posted this so i posted this in this Section.

    I am Having a VPS server were i m hosting 1 site and now I tried hosting other site with Custom NS now whenever i try to access the second site it redirects me too the first site don't Know why :(

    I can't Post the Links of the website otherwise DP Mods will Give an Infraction to me :p as they always give
    for Example i m been hosting site1.com from earlier on my VPS then i add the Site2.com and made NS and change the NS of Site2.com to custom NS i made as both Sites on Same Server i m using the Same IP's

    now what happen is this
    Site2.com redirects to-> Site1.com
    Code (markup):
    any solution would be helpful
     
    riteshsanap, Jan 30, 2011 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Did you modify Apache's (I am assuming you are running Apache) configuration file to accommodate site2?
     
    mwasif, Jan 30, 2011 IP
  3. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #3
    Means i m unable to Understand can you please tell me what exactly ? , I m using Kloxo at my site and Apache as the WebServer
     
    riteshsanap, Jan 30, 2011 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    How did you host your first site? Open httpd.conf and find site1 in it. You'll find a virtualhost entry in it, create a similar one for site2 and define a web root for it.
     
    mwasif, Jan 30, 2011 IP
  5. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #5
    According to me this Settings are automatically done by Kloxo , As Kloxo is the Alternative to CPanel , and i saw the Kloxo's VirtualHost List and it Just has the List of my VPS Ip's
     
    riteshsanap, Jan 30, 2011 IP
  6. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #6
    Ok. Did you host your new site using Kloxo or you just made the changes to DNS?
     
    mwasif, Jan 30, 2011 IP
  7. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #7
    I added the Domain In Kloxo then , I made the NameServers in Godaddy
     
    riteshsanap, Jan 30, 2011 IP
  8. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #8
    Did you see the site2 virtualhost in that list? Post here the content of that virtualhost
     
    mwasif, Jan 30, 2011 IP
  9. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #9
    yup I can , For Simplifying I m adding the Links of the actual site let DP give Infraction

    Site1 is http://www.downloaddeck.com
    site2 is http://bloggeruploads.com
    
    Code (markup):
     
    riteshsanap, Jan 30, 2011 IP
  10. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #10
    It looks like you have set domain forwarding on site2.
     
    mwasif, Jan 30, 2011 IP
  11. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #11
    NOP i checked that setting in Godaddy but its Off,
     
    riteshsanap, Jan 30, 2011 IP
  12. riteshsanap

    riteshsanap Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    3
    Trophy Points:
    168
    #12
    Heres the VirtualHost CONF of Bloggeruploads :
    <VirtualHost  \
              93.174.88.115:80\
    >
    servername    bloggeruploads.com
    ServerAlias www.bloggeruploads.com
    DocumentRoot   /home/admin/bloggeruploads/
    DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
    ScriptAlias     /awstats/  /home/kloxo/httpd/awstats/wwwroot/cgi-bin/
    <IfModule suexec.c>
    SuexecUserGroup     admin  admin
    </IfModule>
    
    
    <IfModule mod_suphp.c>
    AddType application/x-httpd-php .php
    RemoveHandler .php
    <FilesMatch "\.php$" >
    SetHandler x-httpd-php
    </FilesMatch>
    <Location />
    suPHP_AddHandler x-httpd-php 
    </Location>
    SuPhp_UserGroup     admin  admin
    </IfModule>
    
    
    Redirect     /stats http://bloggeruploads.com/awstats/awstats.pl
    Redirect     /stats/ http://bloggeruploads.com/awstats/awstats.pl
    Alias     /__kloxo  /home/admin/kloxoscript
    Redirect     /webmail  http://webmail.bloggeruploads.com
    Redirect     /kloxononssl  http://cp.bloggeruploads.com:7778
    Redirect     /kloxo	https://cp.bloggeruploads.com:7777
    <Directory /home/httpd/bloggeruploads.com/kloxoscript>
    AllowOverride All
    </Directory>
    ScriptAlias     /cgi-bin/   /home/admin/bloggeruploads//cgi-bin/
    CustomLog      /home/httpd/bloggeruploads.com/stats/bloggeruploads.com-custom_log combined  
    ErrorLog       /home/httpd/bloggeruploads.com/stats/bloggeruploads.com-error_log
    <Directory /home/admin/bloggeruploads/>
    AllowOverride All
    </Directory>
    <Location />
    Options +Includes +FollowSymlinks 
    </Location>
    <Directory /home/httpd/bloggeruploads.com/webstats>
    AllowOverride All
    </Directory>
    <Location /stats>
    Options +Indexes
    </Location>
    <IfModule mod_suphp.c>
    suPHP_Configpath /home/httpd/bloggeruploads.com
    </IfModule>
    <Location />
    <IfModule sapi_apache2.c>
    php_admin_value open_basedir "/home/httpd/bloggeruploads.com/httpdocs:/home/httpd/bloggeruploads.com/bloggeruploads.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/httpd/bloggeruploads.com/httpdocs:/home/httpd/bloggeruploads.com/bloggeruploads.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script"
    </IfModule>
    </Location>
    </VirtualHost>
    
    
    
    
    <IfModule mod_ssl.c>
    #### ssl virtualhost per ip
    <VirtualHost 93.174.88.115:443>
    servername    bloggeruploads.com
    ServerAlias www.bloggeruploads.com
    DocumentRoot   /home/admin/bloggeruploads/
    DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
    ScriptAlias     /awstats/  /home/kloxo/httpd/awstats/wwwroot/cgi-bin/
    <IfModule suexec.c>
    SuexecUserGroup     admin  admin
    </IfModule>
    
    
    <IfModule mod_suphp.c>
    AddType application/x-httpd-php .php
    RemoveHandler .php
    <FilesMatch "\.php$" >
    SetHandler x-httpd-php
    </FilesMatch>
    <Location />
    suPHP_AddHandler x-httpd-php 
    </Location>
    SuPhp_UserGroup     admin  admin
    </IfModule>
    
    
    Redirect     /stats http://bloggeruploads.com/awstats/awstats.pl
    Redirect     /stats/ http://bloggeruploads.com/awstats/awstats.pl
    Alias     /__kloxo  /home/admin/kloxoscript
    Redirect     /webmail  http://webmail.bloggeruploads.com
    Redirect     /kloxononssl  http://cp.bloggeruploads.com:7778
    Redirect     /kloxo	https://cp.bloggeruploads.com:7777
    <Directory /home/httpd/bloggeruploads.com/kloxoscript>
    AllowOverride All
    </Directory>
    ScriptAlias     /cgi-bin/   /home/admin/bloggeruploads//cgi-bin/
    <Directory /home/admin/bloggeruploads/>
    AllowOverride All
    </Directory>
    <Location />
    Options +Includes +FollowSymlinks 
    </Location>
    <Directory /home/httpd/bloggeruploads.com/webstats>
    AllowOverride All
    </Directory>
    <Location /stats>
    Options +Indexes
    </Location>
    SSLEngine On 
    SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.crt
    SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
    SSLCACertificatefile /home/kloxo/httpd/ssl/venet0_0___localhost.ca
    <IfModule mod_suphp.c>
    suPHP_Configpath /home/httpd/bloggeruploads.com
    </IfModule>
    <Location />
    <IfModule sapi_apache2.c>
    php_admin_value open_basedir "/home/httpd/bloggeruploads.com/httpdocs:/home/httpd/bloggeruploads.com/bloggeruploads.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/httpd/bloggeruploads.com/httpdocs:/home/httpd/bloggeruploads.com/bloggeruploads.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script"
    </IfModule>
    </Location>
    </VirtualHost>
    #### ssl virtualhost per ip 93.174.88.115 end
    
    
    </IfModule>
    
    Code (markup):
     
    riteshsanap, Jan 30, 2011 IP