On May 26, 2006, at 1:32 PM, joelbywan wrote:
>
>
> Hi this is a newbie question that should be easy enough for
> somebody to
> answer, I''m horrible at this web server configuration stuff.
>
> I''m running Rails on Fedora Core 5 with Lighttpd and MySql.
I''ve
> created a
> rails application ''logapp''. I have an entry in
/etc/hosts like...
>
> 127.0.0.1 logapp
>
> So when I point my browser to ''logapp'' I get my app.
>
> When I point my browser to the IP of the server (say
> 208.256.152.228) I get
> the default Lighttpd index page.
>
> Now I want to move my app so that others on the network can access
> it by
> going to something like 208.256.152.228/logapp, but I cannot
> figure
> this out!! It''s got to be rather simple.
>
> Here''s my Lighttpd.conf
>
>
> server.port = 80
> server.pid-file = "/tmp/test_lighttpd.pid"
>
> server.modules = ( "mod_redirect", "mod_access",
"mod_fastcgi",
> "mod_accesslog", "mod_simple_vhost" )
>
> server.document-root = "/srv/www/lighttpd/"
> server.indexfiles = ( "index.php", "index.html" )
> accesslog.filename = "/var/log/lighttpd/access_log"
> server.errorlog = "/var/log/lighttpd/error_log"
>
> # Start of logapp vhost
> $HTTP["host"] == "logapp" {
Try this line instead of the above line:
$HTTP["url"] =~ "^/logapp/" {
> server.document-root = "/home/jturnbull/logapp/public/"
> accesslog.filename = "/home/jturnbull/logapp/log/access.log"
> server.indexfiles = ( "dispatch.fcgi", "index.html" )
> server.error-handler-404 = "/dispatch.fcgi"
>
> # rails stuff
> #### fastcgi module
> fastcgi.server = (
> ".fcgi" => (
> "logapp" => (
> "socket" => "/tmp/logapp1.socket",
> "bin-path" =>
"/home/jturnbull/logapp/public/dispatch.fcgi",
> "min-procs" => 1,
> "max_procs" => 2,
> "bin-environment" => ("RAILS_ENV" =>
"production")
> )
> )
> )
> }
> # End of sceduler vhost
>
> # mimetype mapping
> etc.
>
>
> --
> View this message in context: nabble.com/Lighttpd+Config-
> t1689030.html#a4583425
> Sent from the RubyOnRails Users forum at Nabble.com.
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> lists.rubyonrails.org/mailman/listinfo/rails
-Ezra
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
wrath.rubyonrails.org/pipermail/rails/attachments/20060527/a5964ed7/attachment-0001.html