View Single Post
  #9  
Old 9th October 2006, 23:13
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,257
Thanks: 75
Thanked 22 Times in 18 Posts
Default

to be honest I got nowhere with the second apache2 install :-(
my next line of thought was, I could install another light web server with only the minimal config, as it needs not serve much, I could just skip the most config steps, I want it to only server static content, so any web serevr would do so I started looking closer at lighttpd and found only this tutorial that gives more info for an install on debian: http://trac.lighttpd.net/trac/wiki/TutorialInstallation and this is an example of a vhost setting for lighttpd:

Quote:
To run lighttpd with multiple domains you would setup virtual hosting. e.g. in lighttpd.conf:

$HTTP["host"] =~ "(www.)?example.com" {
server.document-root = "/var/www/example/current/public/"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = (
".fcgi" => (
"localhost" => (
"socket" => "/var/run/www/example.com-0.socket"
)
)
)
}

$HTTP["host"] =~ "(www.)?example2.com" { server.document-root ="/var/www/example2/current/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => "/var/run/www/example2-0.socket" ) ) ) }
besides that it is only available in unstable so I would have to change the status of a lot of stuff from stable to unstable so I just stopped.

is there anyone here who uses a secondary webserver installed on the same machine and can give me some hints on how to do this? I do not really care anymore what is used for the secondary webserver, I just need it to be able to server static content for vhosts...

Last edited by Ovidiu; 9th October 2006 at 23:40.
Reply With Quote