On 7 May 2009, at 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?


I have this running on my server with a config this simple:

<VirtualHost *>
   ServerName name1

   DocumentRoot /home/www/name1/current/public

   ErrorLog /var/log/httpd/name1-error_log
   CustomLog /var/log/httpd/name1 -access_log combined
</VirtualHost>

<VirtualHost *>
   ServerName name2

   DocumentRoot /home/www/name2/current/public

   ErrorLog /var/log/httpd/name2-error_log
   CustomLog /var/log/httpd/name2-access_log combined
</VirtualHost>

For testing locally I have always just added entries into /etc/hosts  
but there may be better ways.

Will.

-- 
Will Jessop
Super Shiny Robot Limited - Professional web design and development

t: 07939 547 962
w: http://supershinyrobot.com/


--~--~---------~--~----~------------~-------~--~----~
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