Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Lighttpd: simple vhost question [solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
jedsen
Apprentice
Apprentice
Posts: 276
Joined: Fri Oct 15, 2004 9:41 pm
Location: Sacramento, California, USA

Lighttpd: simple vhost question [solved]

  • Quote

Post by jedsen » Thu May 11, 2006 12:28 am

Hi, I'm running a lighttpd server with php and ruby on rails running through the fastcgi interface. To get ruby to work I set up a simple virtual host with the following external config file for lighttpd:
$HTTP["host"] == "rolla.co.nr" {
server.document-root = "/home/<user>/ruby-www/public/"
server.indexfiles = ( "index.html", "dispatch.fcgi" )
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = (
".fcgi" => ((
"socket" => "/tmp/rails.sck",
"bin-path" => "/home/<user>/ruby-www/public/dispatch.fcgi",
"min-procs" => 1,
"max-procs" => 5
)
)
)
}
$HTTP["host"] != "rolla.co.nr" {
simple-vhost.server-root = "/var/www/servers/"
simple-vhost.default-host = "www.rolla.co.nr"
simple-vhost.document-root = "nonssl"
}
I'm wondering if anyone knows how to bind this virtual host to a specified directory on the host, namely /ruby/, so the url to access the ruby vhost would be http://rolla.co.nr/ruby/.

Thanks for reading.
Last edited by jedsen on Sun May 14, 2006 6:56 am, edited 1 time in total.
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Fri May 12, 2006 11:24 am

I think that an alias should do the trick:

Code: Select all

alias.url =("/ruby/" => "/home/<user>/ruby-www/public/")
Don't forget to uncomment the mod_alias.
Registered user #30505
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy