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 http://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” {
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:
http://www.nabble.com/Lighttpd+Config-t1689030.html#a4583425
Sent from the RubyOnRails Users forum at Nabble.com.