Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a minimal example config
- # See /usr/share/doc/lighttpd
- # and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
- server.port = 80
- server.username = "http"
- server.groupname = "http"
- server.document-root = "/srv/http"
- server.errorlog = "/var/log/lighttpd/error.log"
- dir-listing.activate = "enable"
- index-file.names = ( "index.html" )
- mimetype.assign = (
- ".html" => "text/html",
- ".txt" => "text/plain",
- ".css" => "text/css",
- ".js" => "application/x-javascript",
- ".jpg" => "image/jpeg",
- ".jpeg" => "image/jpeg",
- ".gif" => "image/gif",
- ".png" => "image/png",
- "" => "application/octet-stream"
- )
- include "conf.d/fastcgi.conf"
- $HTTP["host"] == "www.lorwiki.org.ru" {
- server.document-root = "/srv/http/wiki"
- server.error-handler-404 = "/404.php"
- url.rewrite-if-not-file = (
- "^/wiki/(mw-)?config/?" => "$0",
- "^/wiki/([^?]*)(?:\?(.*))?" => "/index.php?title=$1&$2",
- "^/wiki/([^?]*)" => "/index.php?title=$1",
- "^/wiki$" => "/index.php", # to avoid 404 when the user types /wiki instead of /wiki/
- )
- }
- $HTTP["host"] == "lorwiki.org.ru" {
- server.document-root = "/srv/http/wiki"
- server.error-handler-404 = "/404.php"
- url.rewrite-if-not-file = (
- "^/wiki/(mw-)?config/?" => "$0",
- "^/wiki/([^?]*)(?:\?(.*))?" => "/index.php?title=$1&$2",
- "^/wiki/([^?]*)" => "/index.php?title=$1",
- "^/wiki$" => "/index.php", # to avoid 404 when the user types /wiki instead of /wiki/
- )
- }
- $SERVER["socket"] == ":443" {
- ssl.engine = "enable"
- ssl.pemfile = "/etc/letsencrypt/live/lorwiki.org.ru/combined.pem"
- ssl.ca-file = "/etc/letsencrypt/live/lorwiki.org.ru/chain.pem"
- }
- php <?php
- # This file was automatically generated by the MediaWiki 1.31.0-alpha
- # installer. If you make manual changes, please keep track in case you
- # need to recreate them later.
- #
- # See includes/DefaultSettings.php for all configurable settings
- # and their default values, but don't forget to make changes in _this_
- # file, not there.
- #
- # Further documentation for configuration settings may be found at:
- # https://www.mediawiki.org/wiki/Manual:Configuration_settings
- # Protect against web entry
- if ( !defined( 'MEDIAWIKI' ) ) {
- exit;
- }
- ## Uncomment this to disable output compression
- # $wgDisableOutputCompression = true;
- $wgSitename = "LORWiki";
- ## The URL base path to the directory containing the wiki;
- ## defaults for all runtime URL paths are based off of this.
- ## For more information on customizing the URLs
- ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
- ## https://www.mediawiki.org/wiki/Manual:Short_URL
- $wgScriptPath = "";
- // The URL base path to the directory containing the wiki;
- // defaults for all runtime URL paths are based off of this.
- // For more information on customizing the URLs
- // (like /w/index.php/Page_title to /wiki/Page_title) please see:
- // https://www.mediawiki.org/wiki/Manual:Short_URL
- $wgScript = "$wgScriptPath/index.php";
- $wgRedirectScript = "$wgScriptPath/redirect.php";
- $wgArticlePath = "$wgScriptPath/$1";
- ## The protocol and server name to use in fully-qualified URLs
- $wgServer = "http://lorwiki.org.ru/";
- ## The URL path to static resources (images, scripts, etc.)
- $wgResourceBasePath = $wgScriptPath;
- ## The URL path to the logo. Make sure you change this from the
- ## or else you'll overwrite your logo when you upgrade!
- $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
- ## UPO means: this is also a user preference option
- $wgEnableEmail = false;
- $wgEnableUserEmail = true; # UPO
- $wgEmergencyContact = "apache@92.53.90.130";
- $wgPasswordSender = "apache@92.53.90.130";
- $wgEnotifUserTalk = false; # UPO
- $wgEnotifWatchlist = false; # UPO
- $wgEmailAuthentication = true;
- ## Database settings
- $wgDBtype = "mysql";
- $wgDBserver = "localhost";
- $wgDBname = "lorwikidb";
- $wgDBuser = "root";
- $wgDBpassword = "";
- # MySQL specific settings
- $wgDBprefix = "";
- # MySQL table options to use during installation or update
- $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
- # Experimental charset support for MySQL 5.0.
- $wgDBmysql5 = false;
- ## Shared memory settings
- ## To enable image uploads, make sure the 'images' directory
- ## is writable, then set this to true:
- $wgEnableUploads = true;
- #$wgUseImageMagick = true;
- #$wgImageMagickConvertCommand = "/usr/bin/convert";
- # InstantCommons allows wiki to use images from https://commons.wikimedia.org
- $wgUseInstantCommons = false;
- # Periodically send a pingback to https://www.mediawiki.org/ with basic
- #data
- # about this MediaWiki instance. The Wikimedia Foundation shares this
- # with MediaWiki developers to help guide future development efforts.
- #$wgPingback = true;
- ## If you use ImageMagick (or any other shell command) on a
- ## Linux server, this will need to be set to the name of an
- ## available UTF-8 locale
- $wgShellLocale = "en_US.utf8";
- ## Set $wgCacheDirectory to a writable directory on the web server
- ## to make your wiki go slightly faster. The directory should not
- ## be publically accessible from the web.
- $wgCacheDirectory = "$IP/cache";
- # Site language code, should be one of the list in
- #./languages/data/Names.php
- $wgLanguageCode = "ru";
- $wgSecretKey = "bbfca79c3c8efcfa2b1aa15195e00c7888360c0038323ca61537c76a7ba562a4";
- # Changing this will log out all existing sessions.
- $wgAuthenticationTokenVersion = "1";
- # Site upgrade key. Must be set to a string (default provided) to turn n the
- # web installer while LocalSettings.php is in place
- $wgUpgradeKey = "ed3f4d913eb8dc6a";
- ## For attaching licensing metadata to pages, and displaying an
- ## appropriate copyright notice / icon. GNU Free Documentation
- ## License and Creative Commons licenses are supported so far.
- $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
- $wgRightsUrl = "";
- $wgRightsText = "Creative Commons Attribution-ShareAlike 4.0 Unported";
- $wgRightsIcon = "";
- # Path to the GNU diff3 utility. Used for conflict resolution.
- $wgDiff3 = "/usr/bin/diff3";
- wfLoadSkin( 'MonoBook' );
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, ie 'vector', 'monobook':
- $wgDefaultSkin = "monobook";
- # End of automatically generated settings.
- # Add more configuration options below.
- wfLoadExtension( 'SyntaxHighlight_GeSHi' );
- wfLoadExtension( 'DiscussionThreading' );
- $wgFileExtensions[] = 'svg';
- ///$wgDebugLogFile = "/srv/http/wiki/debug.log";
- // Субстраницы в майн
- $wgNamespacesWithSubpages[NS_MAIN] = true;
- // Кастомные пространства имён
- // Define constants for my additional namespaces.
- define("NS_Portal", 3000); // This MUST be even.
- define("NS_Portal_TALK", 3001); // This MUST be the following odd integer.
- // Add namespaces.
- $wgExtraNamespaces[NS_Portal] = "Портал";
- $wgExtraNamespaces[NS_Portal_TALK] = "Обсуждение_Портал"; // Note underscores in the namespace name.
- $wgNamespacesWithSubpages[NS_Portal] = true;
- define("NS_FAQ", 3002);
- define("NS_FAQ_TALK", 3003);
- $wgExtraNamespaces[NS_FAQ] = "FAQ";
- $wgExtraNamespaces[NS_FAQ_TALK] = "обсуждение_FAQ";
- //Включаю субстраницы
- $wgNamespacesWithSubpages[NS_FAQ] = true;
- $wgMainCacheType = CACHE_MEMCACHED;
- $wgParserCacheType = CACHE_MEMCACHED; # optional
- $wgMessageCacheType = CACHE_MEMCACHED; # optional
- $wgMemCachedServers = array( "127.0.0.1:11211" );
- $wgSessionsInObjectCache = true; # optional
- $wgSessionCacheType = CACHE_MEMCACHED; # optional
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement