Easy question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shelly

    #1

    Easy question

    Here is a question that is probably very easy but that I don't know how to
    do [yet].

    I have a web site www.aaa.net. A directory structure has been created for
    me on the server as and it appears to me as /var/www/html. That is where
    all my code is placed.

    I want to have another site, www.aaa.org. I want the directory structure
    for the html and php for this to be under the www.aaa.net directory tree in
    a subdirectory org (/var/www/html/org). That way I can basically point to
    the same code and it will simply be an alias when the sites go live. Also,
    for now, they could behave differently with the public seeing www.aaa.org
    (which has limited stuff) and we can continue to develop on www.aaa.net.

    How do I do this?

    Shelly


  • Niklas Schönberg

    #2
    Re: Easy question

    Shelly wrote:[color=blue]
    > Here is a question that is probably very easy but that I don't know how to
    > do [yet].
    >
    > I have a web site www.aaa.net. A directory structure has been created for
    > me on the server as and it appears to me as /var/www/html. That is where
    > all my code is placed.
    >
    > I want to have another site, www.aaa.org. I want the directory structure
    > for the html and php for this to be under the www.aaa.net directory tree in
    > a subdirectory org (/var/www/html/org). That way I can basically point to
    > the same code and it will simply be an alias when the sites go live. Also,
    > for now, they could behave differently with the public seeing www.aaa.org
    > (which has limited stuff) and we can continue to develop on www.aaa.net.
    >
    > How do I do this?
    >
    > Shelly
    >[/color]

    This is really more a question of webserver configuration than php, if I
    understand you correctly. I'm assuming that you are using apache since
    it seems to be a *nix system.
    The information you are seeking can be found here:


    Look for "virtual hosts".

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFCwyQaZeV xmdI1of8RAhaaAJ 97CFyqmZwBT39wt i4vM4CWccgRewCf Y+9j
    9VE4om8H/M11eNSmjKU5jjE=
    =pVmq
    -----END PGP SIGNATURE-----

    Comment

    Working...