Answer the question
In order to leave comments, you need to log in
Why doesn't the short link in mediawiki work in the nginx + apache2 bundle?
Comrades, save me, I do not have enough nerves. Doesn't want to work with
NGINX short link
server {
listen 443 ssl;
server_name sitename.ru;
error_page 404 = @fallback;
include /etc/nginx/proxy_params;
include /etc/nginx/excludes.conf;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'kEECDH+ECDSA+AES128 kEECDH+ECDSA+AES256 kEECDH+AES128 kEECDH+AES256 kEDH+AES128 kEDH+AES256 DES-CBC3-SHA +SHA !aNULL !eNULL !LOW !kECDH !DSS !MD5 !EXP !PSK !SRP !CAMELLIA !SEED !RC4';
ssl_certificate /etc/nginx/newca/boundle.crt;
ssl_certificate_key /etc/nginx/newca/vdcard.key;
location ~* ^/(webmail/|phpmyadmin/|pgadmin/) {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080/ /;
}
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080/ /;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
include /etc/nginx/expires.conf;
root /var/www/admin/www/sitename.ru/;
access_log /var/www/admin/logs/sitename.ru.access.log;
}
location @fallback {
proxy_pass http://127.0.0.1:8080;
}
<Directory /var/www/admin/www/sitename.ru/>
Options +ExecCGI -Indexes
FCGIWrapper /var/www/admin/php-bin/php .php
</Directory>
<VirtualHost 127.0.0.1:8080>
ServerName sitename.ru
SetEnvIf X-Forwarded-Proto https HTTPS=on
DocumentRoot /var/www/admin/www/sitename.ru/
Alias /w /var/www/admin/www/wikifarm/w
<Directory "/var/www/admin/www/wikifarm/w">
AllowOverride All
</Directory>
DirectoryIndex index.php index.html index.htm
SuexecUserGroup admin admin
CustomLog /var/www/admin/logs/sitename.ru.access.log combined
ErrorLog /var/www/admin/logs/sitenameru.error.log
ServerAlias www.sitename.ru
ServerAdmin [email protected]
AddDefaultCharset UTF-8
AddHandler fcgid-script .php
</VirtualHost>
RewriteEngine On
RewriteRule ^ruwiki/(.*)$ %{DOCUMENT_ROOT}/w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^ruwiki/*$ /w/index.php [L,QSA]
$wgScriptPath = "/w";
$wgArticlePath = "/ruwiki/$1";
$wgUsePathInfo = true;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question