Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx (reverse-proxy) config
- server {
- listen 80;
- root /var/www/html;
- index index.php index.html index.htm;
- server_name _;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location ~ \.php$ {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_set_header Host $host;
- proxy_pass http://127.0.0.1:8080;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- Apache config (at end of httpd.conf)
- RewriteEngine On
- RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
- Localsettings.php settings
- $wgScriptPath = "";
- $wgScriptExtension = ".php";
- $wgArticlePath = "/wiki/$1";
- $wgEnableUploads = true;
- $wgGenerateThumbnailOnParse = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement