Товарищи спасайте, у меня не хватает нервов. Не хочет отрабатывать short link
NGINX
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;
}
APACHE
<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 admin@sitename.ru
AddDefaultCharset UTF-8
AddHandler fcgid-script .php
</VirtualHost>
.htaccess в каталоге "w"
RewriteEngine On
RewriteRule ^ruwiki/(.*)$ %{DOCUMENT_ROOT}/w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^ruwiki/*$ /w/index.php [L,QSA]
LocalSettings.php
$wgScriptPath = "/w";
$wgArticlePath = "/ruwiki/$1";
$wgUsePathInfo = true;
Apache 2.2, nginx последний