logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Help restricting access to mediawiki
Author
dunhill



Joined: 12 Mar 2014
Posts: 1
Location: Canada, Wasaga Beach

PostPosted: Wed 12 Mar '14 22:18    Post subject: Help restricting access to mediawiki Reply with quote

it has been a number of years since using Apache so if this is obvious I apologize up front.

I have an ubuntu Server install running the latest Apache. This is all running on a Virtualbox VM.

I have 3 sites configured. 2 of them are set-up with DNS point from the outside world and are working just fine.

when I go to domain1.com and domain2.com the right pages are displayed.
the 3rd host is the default host and when I go to the local ip address 192.168.0.x of the server the correct folder is being displayed.

So all being well I wanted to run MediaWiki on that local default host. limiting access to people who are on the local subnet. Seems easy enough I will change the "allow from all" statement for that virtual to allow from 192.68.0.0/255.255.255.0 and add the deny.

But my issue is the the alias
Alias /mediawiki /var/lib/mediawiki
is being added to all 3 sites
so domain1.com/mediawiki domain2.com/mediawiki are also displaying the wiki pages.

This alias was added in the /etc/mediawiki/apache.conf by the mediawiki install. The instructions I had were to then go in and uncomment to make it available.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 19 Mar '14 12:51    Post subject: Reply with quote

You have to create a default vhost and put the alias in that vhost.

Code:

<VirtualHost _default_:*>
...
</VirtualHost>
Back to top


Reply to topic   Topic: Help restricting access to mediawiki View previous topic :: View next topic
Post new topic   Forum Index -> Apache