Re: Easy question



Shelly wrote:
> 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
>

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:
http://httpd.apache.org/docs-project/

Look for "virtual hosts".

Attachment:signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: Question regarding include() and symlinks to directories
    ... In my opinion includeshould respect symlinks to directories and not ... I would tend to agree with your premise - but the php devs may have ... a simplified version of an existing directory structure (if it would be ... scalable system for accessing system services | ...
    (php.general)
  • Re: [PHP] Re: Question regarding include() and symlinks to directories
    ... As you see whe have an a.inc in each ssi. ... dereference them before finding the file to include. ... I would tend to agree with your premise - but the php devs may have ... a simplified version of an existing directory structure (if it would be ...
    (php.general)
  • Or syntax for directory search
    ... We use a script written in PHP that uses a simple ls command to ... Our directory structure includes ... Anyone know the right regular expression syntax for PHP to properly ...
    (comp.lang.php)
  • Re: PHP and exec(dir)
    ... I assume (based on the directory structure) that you are running this ... Our php runs on FreeBSD Unix & has direct access to & can work ... Perhaps you could create the batch file to access the network drives, ...
    (comp.lang.php)
  • Re: Using include files ?
    ... > im only fairly new to php myself 6 months or so ... >> scripts that contain the fixed elements of a webpage, ... >> have is that my web pages are organized in a tree directory structure. ... >> Outgoing mail is certified Virus Free. ...
    (alt.php)