[hunchentoot-devel] hunchentoot and virtual hosts.
Nicolas Lamirault
nlamirault at gmail.com
Tue Jan 8 16:21:13 UTC 2008
Edi Weitz <edi at agharta.de> writes:
> On Tue, 08 Jan 2008 12:05:49 +0100, Nicolas Lamirault <nlamirault at gmail.com> wrote:
>
>> <VirtualHost *:80>
>> ServerName dev.myfoo.org
>> LispServer 127.0.0.1 8888 "DevFoo"
>> SetHandler lisp-handler
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> ServerName test.myfoo.org
>> LispServer 127.0.0.1 8989 "TestFoo"
>> SetHandler lisp-handler
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> ServerName myfoo.org
>> LispServer 127.0.0.1 9090 "ProdFoo"
>> SetHandler lisp-handler
>> </VirtualHost>
>>
>> <VirtualHost _default_:80>
>> DocumentRoot /var/www/
>> </VirtualHost>
>>
>> i start the PROD web site with :
>>
>> hunchentoot:start-server :port 9090 :mod-lisp-p t
>>
>> i try http://www.myfoo.org, but i've got not response.
>> anyone understand where is my mistake on this configuration ?
>
> www.myfoo.org is not one of the server names mentioned in your
> configuration, you only have myfoo.org.
exact
i modify the Apache configuration file :
<VirtualHost *:80>
ServerName www.myfoo.org
LispServer 127.0.0.1 9090 "ProdFoo"
SetHandler lisp-handler
</VirtualHost>
but if i try www.myfoo.org i've got an error 500
in the apache access log file i've got only :
194.51.71.190 - - [08/Jan/2008:17:17:02 +0100] "GET / HTTP/1.1" 500
608 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11)
Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11"
nothing in the error file ...
--
Nicolas Lamirault
More information about the Tbnl-devel
mailing list