LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2010, 04:25 PM   #1
artur13
Member
 
Registered: Dec 2009
Posts: 31

Rep: Reputation: 16
lighttpd django ubuntu


Hello,
I'm begging for help. I get stuck with this for few days and can't go on. I'm trying to serve my django app with both static and dynamic files but i can't get configuration to work. Here is what i do.
First my lighttpd.conf
Moduls
Code:
            "mod_access",
            "mod_alias",
            "mod_accesslog",
            "mod_compress",
            "mod_rewrite",
	    "mod_fastcgi",
	    "mod_status",
And the part for handling django app
Code:
$HTTP["host"] == "example.com" {
server.document-root       = "/var/www/name/" # tis is where my app lives
fastcgi.server = (
    "/name.fcgi" => (
        "main" => (
            "socket" => "/var/www/name/name.sock",
            "check-local" => "disable",
        )
    ),
)

alias.url += ( "/media/" => "/var/www/media/",
                 "/admin_media/" => "/usr/lib/python2.6/site-packages/django/contrib/admin/media/" )


url.rewrite-once = (
	"^(/media/.*)$" => "$1",
        "^(/admin_media/.*)$" => "$1",
	"^/(.*)$" => "/name.fcgi/$1",
)
}
Here is my /etc/hosts
Code:
127.0.0.1 localhost.localdomain	example.com
And here is how i start my app
Code:
python manage.py runfcgi daemonize=false socket=/var/www/name/name.sock
And i get only
Code:
 Placeholder page
The owner of this web site has not put up any web pages yet. Please come back later.
Any help is appreciate.Thx in advance
Artur

Last edited by artur13; 07-28-2010 at 04:07 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 10.04 LXer Syndicated Linux News 0 07-26-2010 10:30 AM
difficulty installing lighttpd+php5+fastcgi on Ubuntu 10.04 walterbyrd Linux - Software 4 05-13-2010 10:03 AM
LXer: How To Set Up WebDAV With Lighttpd On Ubuntu 9.10 LXer Syndicated Linux News 0 03-08-2010 05:20 PM
LXer: Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 9.10 LXer Syndicated Linux News 0 01-05-2010 08:40 AM
Mumble, murmur, django and mumble-django. Linux.tar.gz Linux - Software 2 02-10-2009 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration