How to enable The Uniform Server for public access

UniServerIn a previous post (actually hosted on another site) I described how to Install Moodle In The Uniform Server. Since then I've had several requests on how to open up UniServer so that it can be accessed by any computer on the LAN.

I'm about to do a presentation on "Classroom Management & Communications Using Moodle" at the CTE Summer Conference, so, I thought it would be appropriate to finally write a quick howto on the steps I took to get this to work.

Open up htaccess
Uniform Server disables external access by default, fortunately rendering this problem is really easy. All you need to do is navigate to the W:\www folder once UniServer is running. Look for a file called ".htaccess". Open up this file in Notepad (or Notepad2 if you've got it). The file should look something like this:

<-----START----->
# This file provides security to the server limiting access to the localhost only.
# Comment to deactivate.

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

# To allow execution of cgi scripts in this directory uncomment next two lines.

AddHandler cgi-script .pl .cgi
Options +ExecCGI

# To unlock your server, comment the next 4 lines.
# Defaults: Username = admin; Password = userver

#AuthName "Uniform Server - Secure Server Access"
#AuthType Basic
#AuthUserFile /htpasswd/www/.htpasswd
#Require valid-user

<-----END----->

All you'll need to do is to add a "#" before the lines:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Once you add these "#" and save the file your new web server will be available to anyone else who knows either your Windows Host Name or you IP Address. If you need to know either of these pieces of information in Windows XP, simply open up a command window. {Go to Start > Run then type cmd} Type IPCONFIG /ALL in the window and note the Host Name and IP Address displayed. The .htaccess file should look like the following when finished:

<------START------>

# This file provides security to the server limiting access to the localhost only.
# Comment to deactivate.

#Order Deny,Allow
#Deny from all
#Allow from 127.0.0.1

# To allow execution of cgi scripts in this directory uncomment next two lines.

AddHandler cgi-script .pl .cgi
Options +ExecCGI

# To unlock your server, comment the next 4 lines.
# Defaults: Username = admin; Password = userver

#AuthName "Uniform Server - Secure Server Access"
#AuthType Basic
#AuthUserFile /htpasswd/www/.htpasswd
#Require valid-user

<-----END----->

 
Trackbacks
  • No trackbacks exist for this entry.
Comments
  • No comments exist for this entry.
Leave a comment

Submitted comments will be subject to moderation before being displayed.

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.