اذهب إلى المحتوى
  • 0

كيف اعدل اعدادات سيرفر lighttpd

علي الكاسر

السؤال

السلا م عليكم يوجد لدي سيرفر lighttpd محلي على جهازي ويمكنني الدخول إلى ملف الاعدادات الخاصه به، ولكن الكود يختلف كليا عن كود سيرفر اباتشي، وانا اود فقط ان يقوم هذا السيرفر بتوجيه كل الطلبات الى ملف index.php ولكن لا اعلم كيف، اتمنى تعديل الكود التالي بما يجعل هذا السيرفر يوجه كل الطلبات لملف index من اجل ان اتحكم بمسارات الموقع مثل الذي موجود في اطر عمل php

## !!!WARNING!!!
## Be careful changing this configuration file!
## Some changes may result in incorrect function of the program.
## Always make backups of configuration files before any changes.
## --------------------------------------------------------------

########
#For the proper functioning of KSWEB keep this settings at the top of this file

#begin_docroot (do not remove this label!)
server.document-root = "/mnt/sdcard/htdocs"
#end_docroot (do not remove this label!)

#begin_port (do not remove this label!)
server.port = 8080
#end_port (do not remove this label!)

#begin_hosts (do not remove this label!)
include "/data/user/0/ru.kslabs.ksweb/components/lighttpd/conf/localhost_host.conf"
#end_hosts (do not remove this label!)
########

#debug.log-request-header     = "enable"
#debug.log-response-header    = "enable"
#debug.log-request-handling   = "enable"
#debug.log-file-not-found     = "enable"
#debug.log-condition-handling = "enable"

server.errorlog = "/storage/emulated/0/ksweb/log/lighttpd/lighttpd.log"
dir-listing.activate = "enable"

index-file.names = ("index.php", "index.html")

fastcgi.server = ( ".php" =>
((
"socket" => "/data/data/ru.kslabs.ksweb/php.sock"
))
)

#fastcgi.server = ( ".php" =>
#  ((
#"host" => "127.0.0.1",
#"port" => 9001
#  ))
#)

server.max-keep-alive-requests = 10
server.max-keep-alive-idle = 10
server.max-read-idle = 10
server.max-write-idle = 30
server.max-connections = 512
server.kbytes-per-second = 8192
connection.kbytes-per-second = 8192
server.protocol-http11 = "enable"

#auth.debug = 2
auth.backend = "plain"

##  MimeType handling
## -------------------
##
## Use the "Content-Type" extended attribute to obtain mime type if
## possible
##
mimetype.use-xattr        = "disable"

##
## mimetype mapping
##
mimetype.assign             = (
  ".appcache"     =>      "text/cache-manifest",
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
  ".spl"          =>      "application/futuresplash",
  ".class"        =>      "application/octet-stream",
  ".ps"           =>      "application/postscript",
  ".torrent"      =>      "application/x-bittorrent",
  ".dvi"          =>      "application/x-dvi",
  ".gz"           =>      "ap

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...