Cleanup mods folder and remove privacy_image_cache from docs. fix #1151

This commit is contained in:
fabrixxm 2014-09-20 11:41:44 +02:00
commit 5d1c7b4e4f
4 changed files with 39 additions and 71 deletions

View file

@ -1,18 +1,7 @@
Site speed can be improved when the following indexes are set. They
cannot be set through the update script because on large sites they will
block the site for several minutes.
sample-Lighttpd.config
sample-nginx.config
Sample configuration files to use Friendica with Lighttpd
or Nginx. Pleas check software documentation to know how modify
these examples to make them work on your server.
CREATE INDEX `uid_commented` ON `item` (`uid`, `commented`);
CREATE INDEX `uid_created` ON `item` (`uid`, `created`);
CREATE INDEX `uid_unseen` ON `item` (`uid`, `unseen`);
CREATE INDEX `resource-id` ON `item` (`resource-id`);
CREATE INDEX `uri_received` ON item(`uri`, `received`);
CREATE INDEX `received_uri` ON item(`received`, `uri`);
CREATE INDEX `contact-id_created` ON item(`contact-id`, created);
CREATE INDEX `uid_network_received` ON item(`uid`, `network`, `received`);
CREATE INDEX `uid_parent` ON item(`uid`, `parent`);
CREATE INDEX `uid_received` ON item(`uid`, `received`);
CREATE INDEX `uid_network_commented` ON item(`uid`, `network`, `commented`);
CREATE INDEX `uid_commented` ON item(`uid`, `commented`);
CREATE INDEX `uid_title` ON item(uid, `title`);
CREATE INDEX `created_contact-id` ON item(`created`, `contact-id`);

View file

@ -42,26 +42,30 @@ server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
# enable SSL
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/wordpress.pem"
ssl.ca-file = "/etc/lighttpd/ssl/ca.pem"
# fix for problem between curl and lighttpd
server.reject-expect-100-with-417 = "disable"
# Send everybody to landing
page:
page:
$SERVER["socket"] == ":80" {
$HTTP["scheme"] == "http" {
$HTTP["host"] =~ ".*" {
# This next redirect doesn't appear to ever execute in
Firefox
Firefox
# (sometimes, anyway -- caching issue?), but it does seem
to
to
# reliably in Google's Chromium browser. If I change it
here
here
# and restart Lighty, Firefox still goes to the URL in
the
# last 'else' below. Or something.
Sometimes.
the
# last 'else' below. Or something.
Sometimes.
server.document-root = "/var/www"
url.redirect = (".*" => "https://example.com")
}
@ -76,7 +80,7 @@ $HTTP["scheme"] == "https" {
server.document-root = "/var/www/wordpress"
ssl.pemfile = "/etc/lighttpd/ssl/wordpress.pem"
# include
"wpmu-rewrites.conf"
"wpmu-rewrites.conf"
url.rewrite-if-not-file = (
"^/(.*/)?files/$" => "/index.php",
"^/(.*/)?files/(.*)" => "/wp-includes/ms-files.php?file=$2",
@ -90,9 +94,9 @@ $HTTP["scheme"] == "https" {
server.document-root = "/var/www/friendica"
ssl.pemfile = "/etc/lighttpd/ssl/friendica.pem"
# Got the following 'Drupal Clean URL'after Mike suggested
trying
trying
# something along those lines, from
http://drupal.org/node/1414950
http://drupal.org/node/1414950
url.rewrite-if-not-file = (
"^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^\/(.*)$" => "/index.php?q=$1"
@ -121,14 +125,14 @@ dir-listing.encoding = "utf-8"
server.dir-listing = "disable"
#compress.cache-dir =
"/var/cache/lighttpd/compress/"
"/var/cache/lighttpd/compress/"
#compress.filetype = ( "application/x-javascript", "text/css",
"text/html", "text/p\
lain"
)
)
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
---------------( config ends )-----------------
---------------( config ends )-----------------