I'll be damned it worked. I added:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
to default_vhost.include between the <Directory> tags and now my short URL
works. Thanks a million, mate!
On 25 August 2015 at 08:52, Brenton Horne <[email protected]> wrote:
> No *.conf files in /etc/apache2/vhosts.d contains DocumentRoot
> "/var/www/localhost/htdocs" but a file called default_vhost.include in this
> /etc/apache2/vhosts.d directory does
>
> On 25 August 2015 at 08:41, Daniel Friesen <[email protected]>
> wrote:
>
>> That's not the file you're supposed to put the config.
>>
>> Your vhost files are included from `/etc/apache2/vhosts.d/*.conf`.
>>
>> One of those has a <VirtualHost> entry with a DocumentPath of
>> `/var/www/localhost/htdocs`.
>> That is the file you're supposed to put the short URL config in. (Inside
>> the <VirtualHost>)
>>
>> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
>>
>> On 2015-08-24 3:26 PM, Brenton Horne wrote:
>> > Here's my httpd.conf file: http://pastebin.com/raw.php?i=rmP7jbYL
>> >
>> > On 25 August 2015 at 08:19, Daniel Friesen <[email protected]>
>> > wrote:
>> >
>> >> Ok, it's getting requests. But the RewriteEngine rule isn't listened
>> to,
>> >> there's no error saying RewriteEngine isn't available, and Apache's
>> >> standard /index.php/... handling isn't even taking effect.
>> >>
>> >> ...there is something terribly wrong with this Apache's configuration.
>> >>
>> >> What does the file where you added the short URL related Apache
>> settings
>> >> to look like?
>> >>
>> >> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/
>> ]
>> >>
>> >> On 2015-08-24 2:53 PM, Brenton Horne wrote:
>> >>> Here's my error_log file for Apache2:
>> >>>
>> >>> [Tue Aug 25 07:39:31 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/wiki
>> >>> [Tue Aug 25 07:39:36 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/w/index.php/SageMath
>> >>> [Tue Aug 25 07:45:11 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/w/index.php/SageMath
>> >>> [Tue Aug 25 07:45:15 2015] [notice] caught SIGWINCH, shutting down
>> >>> gracefully
>> >>> [Tue Aug 25 07:45:32 2015] [notice] suEXEC mechanism enabled (wrapper:
>> >>> /usr/sbin/suexec)
>> >>> apache2: Could not reliably determine the server's fully qualified
>> domain
>> >>> name, using 127.0.1.1 for ServerName
>> >>> [Tue Aug 25 07:45:34 2015] [notice] Apache/2.2.31 (Unix)
>> mod_ssl/2.2.31
>> >>> OpenSSL/1.0.1p configured -- resuming normal operations
>> >>> [Tue Aug 25 07:45:36 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/w/index.php/SageMath
>> >>> [Tue Aug 25 07:47:33 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/linux
>> >>> [Tue Aug 25 07:47:40 2015] [error] [client ::1] File does not exist:
>> >>> /var/www/localhost/htdocs/wiki
>> >>>
>> >>> Where can I find the Listen, VirtualHost and Allow/Deny settings?
>> >> _______________________________________________
>> >> MediaWiki-l mailing list
>> >> To unsubscribe, go to:
>> >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> >>
>> >
>> >
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> To unsubscribe, go to:
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>
>
>
> --
> Thanks for your time,
> Brenton
>
--
Thanks for your time,
Brenton
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l