Check your error logs, make sure Apache is actually running, and check
your Listen, VirtualHost, and Allow/Deny settings.
ERR_CONNECTION_REFUSED doesn't sound like the kind of thing that can
result from a simple RewriteEngine usage. Unless an error killed apache.
Most of the ERR_CONNECTION_REFUSED related SO answers seem related to
Apache or a VirtualHost not listening on an IP or the order of
Allow/Deny entries denying access.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://danielfriesen.name/]
On 2015-08-24 2:20 PM, Brenton Horne wrote:
Hi,
I'm running Sabayon Linux (64-bit, up to date with all updates -- it's a
rolling release system to version numbers are irrelevant) and while I
managed to install MW 1.25.2 on it successfully I cannot seem to shorten
URLs properly. My MediaWiki base directory (i.e., the one with index.php,
LocalSettings.php, etc. in it) is /var/www/localhost/htdocs/w and I am
using MariaDB as my RDBMS, if relevant. To shorten my URL (from w/index.php
to wiki) I added:
AllowOverride All
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
to /etc/apache2/httpd.conf and added:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
to my LocalSettings.php file. I also ran:
systemctl restart apache2
php maintenance/update.php
after this. I then opened up
http://localhost/wiki/Linux_Wiki (my main
page) in Google Chrome and got a page with the error message:
This web page is not available
ERR_CONNECTION_REFUSED
I also tried opening up
http://localhost/w/index.php/Linux_Wiki (where my
main page was prior to the URL shortening attempt) and got a page with the
same error message. Is there anything I have missed here? Btw, I had opened
up
http://localhost/w/index.php/Linux_Wiki in Google Chrome prior to the
shortening attempt without issue, if you're wondering whether this was a
pre-existing problem. Sabayon if you are unfamiliar is a Gentoo derivative.
Thanks for your time,
Brenton
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l