Each config in sites-available should be a virtual host, like so:

<VirtualHost *:80>

   ServerName myfakedomainname.com
   ServerAlias subdomain.myfakedomainname.com

</VirtualHost>

That means if you hit apache with myfakedomainname.com or 
subdomain.myfakedomainname.com it will load that application.

You just need to do the same thing and then setup entries in your hosts 
file (/etc/hosts/ on OS X) to read

10.1.68.4 myfakedomainname.com
10.1.68.4 subdomain.myfakedomainname.com

For each site you want to setup.

Also don't forget to symlink the config files from sites-available to 
sites-enabled and restart apache.

-D


On 7/5/09 14:57, doug livesey wrote:
> Still not sure about this, having looked at my local apache2.conf & 
> sites-available/ & not seeing where I would set it up for two apps.
> I have it set up so that app1.local and app2.local work calling 
> different apps, but what I want is to have the app server on a 
> network, and call apps with something like "http://10.1.68.4/app1";, 
> where "http://10.1.68.4"; is the local name of the server, and the 
> second bit, "/app1", is obviously the name of the app I'm trying to call.
> Guess I'm having a slow head day.
> Could someone post an example (toy example would do) of the config for 
> a system they're running more than one app on?
> Cheers,
>    Doug.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to