hi how make multiple domain by using htdocs xamp?

Results 1 to 5 of 5
  1. #1
    Valued Member asparagos is offline
    MemberRank
    Sep 2011 Join Date
    asiaLocation
    144Posts

    big grin hi how make multiple domain by using htdocs xamp?

    hi how make multiple domain by using htdocs xamp?

    bec i run 2 server different version s6 and s4 in 1pc

    any idea how can make different domain address ?

    thanks again ragezone family


  2. #2
    Enthusiast Aye is offline
    MemberRank
    Dec 2011 Join Date
    37Posts

    Re: hi how make multiple domain by using htdocs xamp?

    On the same PC?

    If I'm not mistaken :

    Impossible.

  3. #3
    Valued Member asparagos is offline
    MemberRank
    Sep 2011 Join Date
    asiaLocation
    144Posts

    Re: hi how make multiple domain by using htdocs xamp?

    Quote Originally Posted by Aye View Post
    On the same PC?

    If I'm not mistaken :

    Impossible.
    is possible :) now my problem the multiple domain for site bec. idont want use exsample htdocs/secondweb/

    example http://mujiubus.com/secondweb << to see the second website for second server thats site only ican make any idea for multi domain.. iwant make http://mujiubus.com for s6 http://mujiubus4.com for s4 server ?

  4. #4
    Kingdom of Shadows [RCZ]ShadowKing is offline
    MemberRank
    Jul 2007 Join Date
    1,644Posts

    Re: hi how make multiple domain by using htdocs xamp?

    Quote Originally Posted by Aye View Post
    On the same PC?

    If I'm not mistaken :

    Impossible.
    What you said is so wrong, you see this technique used everywhere on the internet.

    Solution:
    Go to xampp/apache/config/httpd-vhosts.conf and setup your values
    Example
    Code:
    NameVirtualHost *:80
    <VirtualHost *:80>
        ServerAdmin webmaster@.ro
        DocumentRoot c:/Path1
        ServerName Domain1.com
        ServerAlias Domain1.com
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerAdmin webmaster@.ro
        DocumentRoot c:/Path2
        ServerName Domain2.com
        ServerAlias Domain2.com
    </VirtualHost>
    This settings will make Domain1.com to correspond with files from c:/Path1 and Domain2.com corresponding to c:/Path2.
    (Path1/Path2 is called by default htdocs folder)

    Once you have both domains registered just setup your virtual hosts and point them to the same IP address, Apache will do the rest.
    Last edited by [RCZ]ShadowKing; 27-12-11 at 11:50 PM.

  5. #5
    Valued Member asparagos is offline
    MemberRank
    Sep 2011 Join Date
    asiaLocation
    144Posts

    Re: hi how make multiple domain by using htdocs xamp?

    Quote Originally Posted by [RCZ]ShadowKing View Post
    What you said is so wrong, you see this technique used everywhere on the internet.

    Solution:
    Go to xampp/apache/config/httpd-vhosts.conf and setup your values
    Example
    Code:
    NameVirtualHost *:80
    <VirtualHost *:80>
        ServerAdmin webmaster@.ro
        DocumentRoot c:/Path1
        ServerName Domain1.com
        ServerAlias Domain1.com
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerAdmin webmaster@.ro
        DocumentRoot c:/Path2
        ServerName Domain2.com
        ServerAlias Domain2.com
    </VirtualHost>
    This settings will make Domain1.com to correspond with files from c:/Path1 and Domain2.com corresponding to c:/Path2.
    (Path1/Path2 is called by default htdocs folder)

    Once you have both domains registered just setup your virtual hosts and point them to the same IP address, Apache will do the rest.

    easy great guide :P thank you verry much brother



Advertisement