nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

lighttpd virtual host for LAN ip

This is a discussion on lighttpd virtual host for LAN ip within the Web servers forums, part of the Mastering Servers category; hi ! I recently installed a gentoo with a lighttpd and redmine (ruby rails)s). My problem is that I want ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2008, 04:08 AM
Junior Member
User
 
Join Date: Dec 2008
OS: gentoo
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
typedef is on a distinguished road
Default lighttpd virtual host for LAN ip

hi !

I recently installed a gentoo with a lighttpd and redmine (ruby rails)s).
My problem is that I want to have a virtual host in lighttpd, that point to my fast-cgi ruby redmine for web url and another virtual host that point to the same redmine but inside my lan with the ip (it's quite faster).

the host with url works fine, from both inside and outside the lan, but i can't figure out a good config for ip-based virtual host.

here is my lighttpd.conf, if you have an idea.

vhost that is working :
Code:
$HTTP["host"] == "redmine.mydomain.com" {
        server.document-root = "/var/www/redmine/public/"

        alias.url = ()

        server.indexfiles = ( "dispatch.fcgi" )
        server.error-handler-404 = "/dispatch.fcgi"
        url.rewrite-once = (
                "^/(.*\..+(?!html))$" => "$0",
                "^/(.*)\.(.*)"        => "$0",
        )

        fastcgi.server = (
                ".fcgi" => ( "redmine" => (
                        "socket"                => "/tmp/redmine.socket",
                        "bin-path"              => "/usr/bin/ruby
/var/www/redmine/public/dispatch.fcgi",
                        "min-procs" => 1,
                        "max-procs" => 4,
                        "idle-timeout" => 120,
                        "check-local" => "disable",
                        "bin-environment" => ( "RAILS_ENV" => "production" ),
                ))
        )
}
the virtual host for my ip is exactly the same, only the first line change :
Code:
$HTTP["host"] == "192.168.0.1/redmine" {
but send me to 404.

Thanks for your help.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual box JATA01 CentOS / RHEL / Fedora 0 10-10-2008 09:21 AM
virtual interfaces asim.mcp Networking, Firewalls and Security 3 07-16-2008 01:19 PM
different php.ini for different virtual users kasimani Web servers 1 04-15-2008 02:17 PM
virtual machine detection nikale Getting started tutorials 1 03-04-2008 03:37 AM
Virtual Host NeoGreen Web servers 3 08-12-2007 12:01 PM


All times are GMT +5.5. The time now is 09:19 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38