4
FastCgiとLighttpdには新しく、DJANGOアプリケーションを設定しようとしています。
mydomain.com/mysite.fcgi/mysite.fcgi/contentすなわちCssはFastCGIとLighttpdで動作しません
CSSは、要求されたURLのための接頭辞を追加して、すべての
のFastCGIで動作していない。現時点での問題のカップルが直面しています
0:/ 1/000228 /代わりに
mydomain.com/content/1/000228/以下
あるconfの対応フォルダ内の私のFastCGIスクリプト(10-fastcgi.conf)の
# /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_
# fastcgi-fastcgi
server.modules += ("mod_fastcgi")
fastcgi.server = (
"/" => (
"main" => (
"socket" => "/tmp/mysite.sock",
"check-local" => "disable",
)
),
)
alias.url = (
"/media" => "/home/path/to/my/media",
)
url.rewrite-once = (
"(/media.*)$" => "$1",
"^/favicon\.ico$" => "/media/favicon.ico",
"^(/.*)$" => "/mysite.fcgi$1",
)
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css"
)
と私のlighttpd.conf設定:
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_rewrite",)
server.document-root = "/var/www"
server.upload-dirs = ("/var/cache/lighttpd/uploads")
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
include "/etc/lighttpd/conf-enabled/10-fastcgi.conf"
index-file.names = ("index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html")
url.access-deny = ("~", ".inc")
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ("application/x-javascript", "text/css", "text/html",
"text/plain")
任意のアイデア?