mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-30 13:01:07 +00:00
parent
bba9907d1f
commit
e546a2d6eb
2 changed files with 82 additions and 4 deletions
|
@ -192,6 +192,45 @@ After reloading or restarting nginx, you should now be able to access wallabag a
|
||||||
|
|
||||||
When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``.
|
When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``.
|
||||||
|
|
||||||
|
Configuration on LigHTTPd
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Edit your ``lighttpd.conf`` file and paste this configuration into it:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
server.modules = (
|
||||||
|
"mod_fastcgi",
|
||||||
|
"mod_access",
|
||||||
|
"mod_alias",
|
||||||
|
"mod_compress",
|
||||||
|
"mod_redirect",
|
||||||
|
"mod_rewrite",
|
||||||
|
)
|
||||||
|
server.document-root = "/var/www/wallabag/web"
|
||||||
|
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"
|
||||||
|
server.port = 80
|
||||||
|
server.follow-symlink = "enable"
|
||||||
|
index-file.names = ( "index.php", "index.html", "index.lighttpd.html")
|
||||||
|
url.access-deny = ( "~", ".inc" )
|
||||||
|
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
||||||
|
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
||||||
|
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
||||||
|
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
|
||||||
|
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
|
||||||
|
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
|
||||||
|
dir-listing.activate = "disable"
|
||||||
|
|
||||||
|
url.rewrite-if-not-file = (
|
||||||
|
"^/([^?])(?:\?(.))?" => "/app.php?$1&$2",
|
||||||
|
"^/([^?]*)" => "/app.php?=$1",
|
||||||
|
"^/wiki$" => "/app.php",
|
||||||
|
)
|
||||||
|
|
||||||
Rights access to the folders of the project
|
Rights access to the folders of the project
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,45 @@ Après que vous ayez rechargé/redémarré Nginx, vous devriez pouvoir avoir acc
|
||||||
|
|
||||||
Si vous voulez importer un fichier important dans wallabag, vous devez ajouter cette ligne dans votre configuration nginx ``client_max_body_size XM; # allows file uploads up to X megabytes``.
|
Si vous voulez importer un fichier important dans wallabag, vous devez ajouter cette ligne dans votre configuration nginx ``client_max_body_size XM; # allows file uploads up to X megabytes``.
|
||||||
|
|
||||||
|
Configuration avec LigHTTPd
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Éditez votre fichier ``lighttpd.conf`` collez-y cette configuration :
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
server.modules = (
|
||||||
|
"mod_fastcgi",
|
||||||
|
"mod_access",
|
||||||
|
"mod_alias",
|
||||||
|
"mod_compress",
|
||||||
|
"mod_redirect",
|
||||||
|
"mod_rewrite",
|
||||||
|
)
|
||||||
|
server.document-root = "/var/www/wallabag/web"
|
||||||
|
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"
|
||||||
|
server.port = 80
|
||||||
|
server.follow-symlink = "enable"
|
||||||
|
index-file.names = ( "index.php", "index.html", "index.lighttpd.html")
|
||||||
|
url.access-deny = ( "~", ".inc" )
|
||||||
|
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
||||||
|
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
||||||
|
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
||||||
|
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
|
||||||
|
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
|
||||||
|
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
|
||||||
|
dir-listing.activate = "disable"
|
||||||
|
|
||||||
|
url.rewrite-if-not-file = (
|
||||||
|
"^/([^?])(?:\?(.))?" => "/app.php?$1&$2",
|
||||||
|
"^/([^?]*)" => "/app.php?=$1",
|
||||||
|
"^/wiki$" => "/app.php",
|
||||||
|
)
|
||||||
|
|
||||||
Droits d'accès aux dossiers du projet
|
Droits d'accès aux dossiers du projet
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue