I am wanting to one run instance of lighttpd, many many instances of mongrel. I also need ssl but only for one of my sites. I understand that Mongrel does not play with SSL so I am forced to use Lighttpd. I think that lighttpd only handles ssl or non-ssl on any given instance. Is there a way for me to accomplish my goal of one lighttpd with multiple mongrels and the occasional ssl connection? -- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060815/d52dd420/attachment.html
I am wanting to one run instance of lighttpd, many many instances of mongrel. I also need ssl but only for one of my sites. I understand that Mongrel does not play with SSL so I am forced to use Lighttpd. I think that lighttpd only handles ssl or non-ssl on any given instance. Is there a way for me to accomplish my goal of one lighttpd with multiple mongrels and the occasional ssl connection? -- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/76c00966/attachment-0001.html
On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote:> > I am wanting to one run instance of lighttpd, many many instances of > mongrel. I also need ssl but only for one of my sites. I understand that > Mongrel does not play with SSL so I am forced to use Lighttpd. I think that > lighttpd only handles ssl or non-ssl on any given instance. Is there a way > for me to accomplish my goal of one lighttpd with multiple mongrels and the > occasional ssl connection?I know that this doesn''t answer your question at all, but have you considered pound -> mongrel_cluster -> tons-o-mongrels ? -- James
I am doing admin work for a guy and he really wants to keep things with just lighty and mongrel. I have thought about it and if this does not work I will suggest it. On 8/16/06, James Ludlow <jamesludlow at gmail.com> wrote:> > On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: > > > > I am wanting to one run instance of lighttpd, many many instances of > > mongrel. I also need ssl but only for one of my sites. I understand that > > Mongrel does not play with SSL so I am forced to use Lighttpd. I think > that > > lighttpd only handles ssl or non-ssl on any given instance. Is there a > way > > for me to accomplish my goal of one lighttpd with multiple mongrels and > the > > occasional ssl connection? > > I know that this doesn''t answer your question at all, but have you > considered pound -> mongrel_cluster -> tons-o-mongrels ? > > > -- James > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/a094a379/attachment.html
On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote:> I am doing admin work for a guy and he really wants to keep things with just > lighty and mongrel. I have thought about it and if this does not work I will > suggest it. > > > > On 8/16/06, James Ludlow <jamesludlow at gmail.com> wrote: > > On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: > > > > > > I am wanting to one run instance of lighttpd, many many instances of > > > mongrel. I also need ssl but only for one of my sites. I understand that > > > Mongrel does not play with SSL so I am forced to use Lighttpd. I think > that > > > lighttpd only handles ssl or non-ssl on any given instance. Is there a > way > > > for me to accomplish my goal of one lighttpd with multiple mongrels and > the > > > occasional ssl connection? > > > > I know that this doesn''t answer your question at all, but have you > > considered pound -> mongrel_cluster -> tons-o-mongrels ? > > > > > > -- James > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > > -- > Grace and Peace, > Timothy G. Wright > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > >If you just want it lighty + mongrel then you probably need to use mod_proxy_core. It''s brand new so you''ll be on the bleeding edge. http://blog.lighttpd.net/articles/2006/07/15/the-new-mod_proxy_core -- Zack Chandler http://depixelate.com
On Aug 16, 2006, at 7:57 AM, Zack Chandler wrote:> On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: >> I am doing admin work for a guy and he really wants to keep things >> with just >> lighty and mongrel. I have thought about it and if this does not >> work I will >> suggest it. >> >> >> >> On 8/16/06, James Ludlow <jamesludlow at gmail.com> wrote: >>> On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: >>>> >>>> I am wanting to one run instance of lighttpd, many many >>>> instances of >>>> mongrel. I also need ssl but only for one of my sites. I >>>> understand that >>>> Mongrel does not play with SSL so I am forced to use Lighttpd. I >>>> think >> that >>>> lighttpd only handles ssl or non-ssl on any given instance. Is >>>> there a >> way >>>> for me to accomplish my goal of one lighttpd with multiple >>>> mongrels and >> the >>>> occasional ssl connection? >>> >>> I know that this doesn''t answer your question at all, but have you >>> considered pound -> mongrel_cluster -> tons-o-mongrels ? >>> >>> >>> -- James >>> _______________________________________________ >>> Mongrel-users mailing list >>> Mongrel-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mongrel-users >>> >> >> >> >> -- >> Grace and Peace, >> Timothy G. Wright >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> >> > > If you just want it lighty + mongrel then you probably need to use > mod_proxy_core. It''s brand new so you''ll be on the bleeding edge. > > http://blog.lighttpd.net/articles/2006/07/15/the-new-mod_proxy_core > > -- > Zack Chandler > http://depixelate.comI have been playing with the pre releases of lighty with the new mod_proxy_core and mongrel_cluster and its working very nice. I haven''t run into any issues with it yet and it solves most all of the issues that lighty''s previous mod_proxy had. -Ezra
Ezra, Would you mind sharing your lighttpd.conf file with me? I would like to see how you have it set up. Thanks. Tim On 8/16/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:> > > On Aug 16, 2006, at 7:57 AM, Zack Chandler wrote: > > > On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: > >> I am doing admin work for a guy and he really wants to keep things > >> with just > >> lighty and mongrel. I have thought about it and if this does not > >> work I will > >> suggest it. > >> > >> > >> > >> On 8/16/06, James Ludlow <jamesludlow at gmail.com> wrote: > >>> On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote: > >>>> > >>>> I am wanting to one run instance of lighttpd, many many > >>>> instances of > >>>> mongrel. I also need ssl but only for one of my sites. I > >>>> understand that > >>>> Mongrel does not play with SSL so I am forced to use Lighttpd. I > >>>> think > >> that > >>>> lighttpd only handles ssl or non-ssl on any given instance. Is > >>>> there a > >> way > >>>> for me to accomplish my goal of one lighttpd with multiple > >>>> mongrels and > >> the > >>>> occasional ssl connection? > >>> > >>> I know that this doesn''t answer your question at all, but have you > >>> considered pound -> mongrel_cluster -> tons-o-mongrels ? > >>> > >>> > >>> -- James > >>> _______________________________________________ > >>> Mongrel-users mailing list > >>> Mongrel-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/mongrel-users > >>> > >> > >> > >> > >> -- > >> Grace and Peace, > >> Timothy G. Wright > >> _______________________________________________ > >> Mongrel-users mailing list > >> Mongrel-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/mongrel-users > >> > >> > > > > If you just want it lighty + mongrel then you probably need to use > > mod_proxy_core. It''s brand new so you''ll be on the bleeding edge. > > > > http://blog.lighttpd.net/articles/2006/07/15/the-new-mod_proxy_core > > > > -- > > Zack Chandler > > http://depixelate.com > > > I have been playing with the pre releases of lighty with the new > mod_proxy_core and mongrel_cluster and its working very nice. I > haven''t run into any issues with it yet and it solves most all of the > issues that lighty''s previous mod_proxy had. > > -Ezra > > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/45bda0ff/attachment-0001.html
On Aug 16, 2006, at 8:35 AM, Timothy Wright wrote:> Ezra, Would you mind sharing your lighttpd.conf file with me? I > would like to see how you have it set up. > Thanks. > Tim > >Sure. Its really simple. THis conf file sends all requests to mongrel though including static. I''m working on the rewrite rules for letting lighty serve the static content and I will post that once I''m finished. But this config works great and is dead simple. server.port = 80 server.bind = "0.0.0.0" server.document-root = "/var/www" # These modules need to be loaded for just plain old proxy. server.modules = ( "mod_rewrite", "mod_redirect", "mod_access", "mod_proxy_core") $HTTP["host"] = "\.foo\.com" { proxy-core.balancer = "round-robin" proxy-core.protocol = "http" proxy-core.backends = ( "127.0.0.1:3000", "127.0.0.1:3001", "127.0.0.1:3002") } I left out the mime-type assign list, I''m sure you have that somewhere. Cheers- -Ezra
Thanks a ton I will get working on that and see what happens. Tim On 8/16/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:> > > On Aug 16, 2006, at 8:35 AM, Timothy Wright wrote: > > > Ezra, Would you mind sharing your lighttpd.conf file with me? I > > would like to see how you have it set up. > > Thanks. > > Tim > > > > > > Sure. Its really simple. THis conf file sends all requests to > mongrel though including static. I''m working on the rewrite rules for > letting lighty serve the static content and I will post that once I''m > finished. But this config works great and is dead simple. > > server.port = 80 > server.bind = "0.0.0.0" > server.document-root = "/var/www" > > # These modules need to be loaded for just plain old proxy. > server.modules = ( "mod_rewrite", "mod_redirect", "mod_access", > "mod_proxy_core") > > > $HTTP["host"] = "\.foo\.com" { > proxy-core.balancer = "round-robin" > proxy-core.protocol = "http" > proxy-core.backends = ( "127.0.0.1:3000", "127.0.0.1:3001", > "127.0.0.1:3002") > } > > > > I left out the mime-type assign list, I''m sure you have that > somewhere. > > Cheers- > -Ezra > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/da0aa976/attachment.html
Ezra, In my effort to move to the bleeding edge, I am unable to install lighttpd. Here is the error that I get. Any thoughts? I am new at this so if it si an obvious one, I am sorry. Tim tim at rome:~/lighttpd-merge-1.4.x$ sudo ./autogen.sh ./autogen.sh: running `libtoolize --copy --force'' You should update your `aclocal.m4'' by running aclocal. ./autogen.sh: running `aclocal'' ./autogen.sh: running `autoheader'' ./autogen.sh: running `automake --add-missing --copy'' src/Makefile.am:77: Libtool library used but `LIBTOOL'' is undefined src/Makefile.am:77: src/Makefile.am:77: The usual way to define `LIBTOOL'' is to add `AC_PROG_LIBTOOL'' src/Makefile.am:77: to `configure.in'' and run `aclocal'' and `autoconf'' again. tim at rome:~/lighttpd-merge-1.4.x$ ./configure -bash: ./configure: No such file or directory On 8/16/06, Timothy Wright <tgw529 at gmail.com> wrote:> > Thanks a ton > I will get working on that and see what happens. > Tim > > On 8/16/06, Ezra Zygmuntowicz <ezmobius at gmail.com > wrote: > > > > > On Aug 16, 2006, at 8:35 AM, Timothy Wright wrote: > > > > > Ezra, Would you mind sharing your lighttpd.conf file with me? I > > > would like to see how you have it set up. > > > Thanks. > > > Tim > > > > > > > > > > Sure. Its really simple. THis conf file sends all requests to > > mongrel though including static. I''m working on the rewrite rules for > > letting lighty serve the static content and I will post that once I''m > > finished. But this config works great and is dead simple. > > > > server.port = 80 > > server.bind = " 0.0.0.0" > > server.document-root = "/var/www" > > > > # These modules need to be loaded for just plain old proxy. > > server.modules = ( "mod_rewrite", "mod_redirect", "mod_access", > > "mod_proxy_core") > > > > > > $HTTP["host"] = "\.foo\.com" { > > proxy-core.balancer = "round-robin" > > proxy-core.protocol = "http" > > proxy-core.backends = ( " 127.0.0.1:3000", "127.0.0.1:3001", > > "127.0.0.1:3002") > > } > > > > > > > > I left out the mime-type assign list, I''m sure you have that > > somewhere. > > > > Cheers- > > -Ezra > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > > -- > > Grace and Peace, > Timothy G. Wright >-- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/3bfc8a26/attachment.html
On Aug 16, 2006, at 6:36 PM, Timothy Wright wrote:> Ezra, > In my effort to move to the bleeding edge, I am unable to install > lighttpd. Here is the error that I get. Any thoughts? I am new at > this so if it si an obvious one, I am sorry. > Tim > > tim at rome:~/lighttpd-merge-1.4.x$ sudo ./autogen.sh > ./autogen.sh: running `libtoolize --copy --force'' > You should update your `aclocal.m4'' by running aclocal. > ./autogen.sh: running `aclocal'' > ./autogen.sh: running `autoheader'' > ./autogen.sh: running `automake --add-missing --copy'' > src/Makefile.am:77: Libtool library used but `LIBTOOL'' is undefined > src/Makefile.am:77: > src/Makefile.am:77: The usual way to define `LIBTOOL'' is to add > `AC_PROG_LIBTOOL'' > src/Makefile.am:77: to `configure.in'' and run `aclocal'' and > `autoconf'' again. > tim at rome:~/lighttpd-merge-1.4.x$ ./configure > -bash: ./configure: No such file or directory >Did you check it out of svn? I had problems compiling from svn as well. So I used the prerelease here: http://www.lighttpd.net/download/lighttpd-1.4.12-20060724-0947.tar.gz then its just a ./configure && make && sudo make install -Ezra
On 2006-08-16 08:30:11 -0700, Ezra Zygmuntowicz wrote:> I have been playing with the pre releases of lighty with the new > mod_proxy_core and mongrel_cluster and its working very nice. I > haven''t run into any issues with it yet and it solves most all of the > issues that lighty''s previous mod_proxy had.As a lighttpd developer i would like to mention: DONT USE THE CURRENT SVN STATE. especially not in production environments. If you do it anyway, dont expect support. Thanks in advance darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
I''m not sure where you got the impression that you can only do ssl or non-ssl. Just add an ssl section to lightty''s conf for ssl. The SSL documentation at http://trac.lighttpd.net/trac/wiki/Docs%3ASSL only says that you have to use IP-based virtual hosting if you want to use one instance of lightty. With no mention of mongrel in this post, I feel bad even posting a response here. It''s probably much more of a lightty question than a mongrel one. I hope my answers help in some way.. BTW, my configuration looks very similar to what is posted on the lightty ssl documentation I referenced above. I have my other hosts in the same file for standard port 80 traffic. Steve Spigarelli On 8/15/06, Timothy Wright <tgw529 at gmail.com> wrote:> I am wanting to one run instance of lighttpd, many many instances of > mongrel. I also need ssl but only for one of my sites. I understand that > Mongrel does not play with SSL so I am forced to use Lighttpd. I think that > lighttpd only handles ssl or non-ssl on any given instance. Is there a way > for me to accomplish my goal of one lighttpd with multiple mongrels and the > occasional ssl connection? > > -- > Grace and Peace, > Timothy G. Wright > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > >
On Thu, 2006-08-17 at 11:18 +0200, Marcus Rueckert wrote:> On 2006-08-16 08:30:11 -0700, Ezra Zygmuntowicz wrote: > > I have been playing with the pre releases of lighty with the new > > mod_proxy_core and mongrel_cluster and its working very nice. I > > haven''t run into any issues with it yet and it solves most all of the > > issues that lighty''s previous mod_proxy had. > > As a lighttpd developer i would like to mention: > > DONT USE THE CURRENT SVN STATE.Marcus, why is that? Is it in flux or did you guys find something? -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Here is an example of doing ssl and non ssl in the same instance. Note the use of $SERVER["socket"] and HTTP["host"]. You can use both of those for one virtual host like I did below. The host setting sets the options that are common to both ssl and non ssl, and the socket settings are port specific. Lots of different combinations are possible. var.base = "/tmp/" server.document-root = var.base server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi", "mod_compress", "mod_expire" ) compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" ) expire.url = ( "/favicon.ico" => "access 3 days", "/javascripts/" => "access 3 days" ) var.app1 = "/usr/local/www/seca/web/" $HTTP["host"] == "test.domain.com" { fastcgi.server = ( ".fcgi" => ( "localhost" => ( "min-procs" => 1, "max-procs" => 1, "socket" => var.app1 + "tmp/sockets/fcgi.socket", "bin-path" => var.app1 + "public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "development" ) ) ) ) } $SERVER["socket"] == "72.25.136.58:80" { server.name = "test.domain.com" server.error-handler-404 = "/dispatch.fcgi" accesslog.filename = var.app1 + "log/lighttpd.access.log" compress.cache-dir = var.app1 + "tmp/cache" } $SERVER["socket"] == "72.25.136.58:443" { ssl.ca-file = var.app1 + "ssl/ca.pem" server.name = "test.domain.com" server.error-handler-404 = "/dispatch.fcgi" server.document-root = var.app1 + "public/" server.errorlog = var.app1 + "log/lighttpd.error.log" accesslog.filename = var.app1 + "log/lighttpd.access.log" compress.cache-dir = var.app1 + "tmp/cache" } var.app2 = "/usr/local/cart/jdonline/web/" $SERVER["socket"] == "72.25.136.54:80" { server.name = "domain2.com" server.error-handler-404 = "/dispatch.fcgi" server.document-root = var.app2 + "public/" server.errorlog = var.app2 + "log/lighttpd.error.log" accesslog.filename = var.app2 + "log/lighttpd.access.log" compress.cache-dir = var.app2 + "tmp/cache" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "min-procs" => 1, "max-procs" => 1, "socket" => var.app2 + "tmp/sockets/fcgi.socket", "bin-path" => var.app2 + "public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "development" ) ) ) ) }
Not sure why they didn''t paste correctly, but the following two lines were supposed to be in the section for port 443. ssl.engine = "enable" ssl.pemfile = var.app1 + "ssl/ra.pem"
On 2006-08-17 12:00:06 -0700, Zed Shaw wrote:> > As a lighttpd developer i would like to mention: > > > > DONT USE THE CURRENT SVN STATE. > > Marcus, why is that? Is it in flux or did you guys find something?it is no in the shape for that so far. mod_proxy_core and some real core changes need some fine tuning first. just watch the lighty blog :) darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Snacktime, I am sorry to say that I am bit confused by what you are saying. I am new at this so I am sorry. Please clairfy as much as possible. Is that what your file looks like or do I need to add in alot of my own info. The Var.appexpression is an include of some sort? Sorry for the lack of understanding on my part. Tim On 8/17/06, snacktime <snacktime at gmail.com> wrote:> > Here is an example of doing ssl and non ssl in the same instance. > Note the use of $SERVER["socket"] and HTTP["host"]. You can use both > of those for one virtual host like I did below. The host setting sets > the options that are common to both ssl and non ssl, and the socket > settings are port specific. Lots of different combinations are > possible. > > > > var.base = "/tmp/" > server.document-root = var.base > server.modules = ( "mod_rewrite", "mod_accesslog", > "mod_fastcgi", "mod_compress", "mod_expire" ) > > > compress.filetype = ( "text/plain", "text/html", "text/css", > "text/javascript" ) > > expire.url = ( "/favicon.ico" => "access 3 days", > "/javascripts/" => "access 3 days" ) > > var.app1 = "/usr/local/www/seca/web/" > $HTTP["host"] == "test.domain.com" { > fastcgi.server = ( ".fcgi" => ( "localhost" => ( > "min-procs" => 1, > "max-procs" => 1, > "socket" => var.app1 + "tmp/sockets/fcgi.socket", > "bin-path" => var.app1 + "public/dispatch.fcgi", > "bin-environment" => ( "RAILS_ENV" => "development" ) > ) ) ) > } > > $SERVER["socket"] == "72.25.136.58:80" { > server.name = "test.domain.com" > server.error-handler-404 = "/dispatch.fcgi" > accesslog.filename = var.app1 + "log/lighttpd.access.log" > compress.cache-dir = var.app1 + "tmp/cache" > } > $SERVER["socket"] == "72.25.136.58:443" { > ssl.ca-file = var.app1 + "ssl/ca.pem" > server.name = "test.domain.com" > server.error-handler-404 = "/dispatch.fcgi" > server.document-root = var.app1 + "public/" > server.errorlog = var.app1 + "log/lighttpd.error.log" > accesslog.filename = var.app1 + "log/lighttpd.access.log" > compress.cache-dir = var.app1 + "tmp/cache" > } > > var.app2 = "/usr/local/cart/jdonline/web/" > $SERVER["socket"] == "72.25.136.54:80" { > server.name = "domain2.com" > server.error-handler-404 = "/dispatch.fcgi" > server.document-root = var.app2 + "public/" > server.errorlog = var.app2 + "log/lighttpd.error.log" > accesslog.filename = var.app2 + "log/lighttpd.access.log" > compress.cache-dir = var.app2 + "tmp/cache" > fastcgi.server = ( ".fcgi" => ( "localhost" => ( > "min-procs" => 1, > "max-procs" => 1, > "socket" => var.app2 + "tmp/sockets/fcgi.socket", > "bin-path" => var.app2 + "public/dispatch.fcgi", > "bin-environment" => ( "RAILS_ENV" => "development" ) > ) ) ) > } > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Grace and Peace, Timothy G. Wright -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060817/f7a910af/attachment.html
On 8/17/06, Timothy Wright <tgw529 at gmail.com> wrote:> Snacktime, > I am sorry to say that I am bit confused by what you are saying. I am new at > this so I am sorry. Please clairfy as much as possible. Is that what your > file looks like or do I need to add in alot of my own info. The Var.app > expression is an include of some sort? Sorry for the lack of understanding > on my part.The Var.app is just a variable to store base paths in, etc.. $HTTP["host"] matches hostnames. $SERVER["socket"] matches an ip address/port combination. I set things that are common to the whole hostname using the host, and use the socket to set the per port configs. One thing that might have thrown you is that for the host config I used the hostname, while the socket sections used the ip address. The config I posted is complete, there are no includes. Chris