[hunchentoot-devel] hunchentoot and virtual hosts.

Marc Battyani marc.battyani at fractalconcept.com
Wed Jan 9 10:36:31 UTC 2008



Nicolas Lamirault wrote:
> i did that :)
> i'm just trying to switch to hunchentoot+mod_lisp
>
> i think the problems comes from Apache configuration.
> I start my web site in 'prod environment.
>
> - without mod_lisp it works fine :
>
> http://localhost:9090/index -> Http code 200, and home page correct
>
> - with mod_lisp doesn't work
> The Apache configuration :
>
> <VirtualHost *:80>
>         ServerName dev.foo.org
>         ServerAdmin webmaster-dev at foo.org
>         ErrorLog /var/log/apache/dev.foo.org-error_log
>         CustomLog /var/log/apache/dev.foo.org-access_log common
>         LispServer 127.0.0.1 8888 "DevOvorost"
>         SetHandler lisp-handler
> </VirtualHost>
>
> <VirtualHost *:80>
>         ServerName test.foo.org
>         ServerAdmin webmaster-test at foo.org
>         ErrorLog /var/log/apache/test.foo.org-error_log
>         CustomLog /var/log/apache/test.foo.org-access_log common
>         LispServer 127.0.0.1 8989 "TestOvorost"
>         SetHandler lisp-handler
> </VirtualHost>
>
> <VirtualHost *:80>
>         ServerName www.foo.org
>         ServerAdmin webmaster at foo.org
>         ErrorLog /var/log/apache/foo.org-error_log
>         CustomLog /var/log/apache/foo.org-access_log common
>         LispServer 127.0.0.1 9090 "ProdOvorost"
>         SetHandler lisp-handler
> </VirtualHost>
>
> http://www.foo.org/index 
> http://localhost/index
> -> http error 500
>   
Have you enabled the virtual hosts in Apache?

NameVirtualHost *

Also don't you have <location> directives?

Here is what I use:

<VirtualHost *>
    ServerAdmin webmaster at host.some_domain.com
    DocumentRoot "/var/www/fc"
    ServerName otfr3.fractalconcept.com
    ErrorLog logs/otfr3.error.log

Redirect /index.html http://otfr3.fractalconcept.com/asp/index.html
LispServer     192.168.2.200 3041 "otfr3"

<Location /asp>
    SetHandler lisp-handler
</Location>

</VirtualHost>

Marc





More information about the Tbnl-devel mailing list