msgbartop
Gossimer’s Premier Web Hosting and Domain Registration Knowledgebase.
msgbarbottom

20 Aug 10 Restricting access through mod_auth_mysql

mod_auth_mysql is an Apache module used to authenticate users and authorize access through a MySQL database. This module manages authentication of users whose username, password, etc. are stored in their respective MySQL database. Gossimer, LLC supports mod_auth_mysql on its Linux Hosting Servers. 

A .htaccess file needs to be uploaded or created under the directory for which you wish to set authenticated access.

Auth Directive Use
AuthMySQLUser The userid to be used to access MySQL
AuthMySQLPassword The password for the userid specified in AuthMySQLUser
AuthMySQLDB The name of the MySQL database containing the authorization information
AuthMySQLUserTable The name of the MySQL table in AuthMySQLDB which contains the userids and passwords
AuthMySQLNameField The name of the column in AuthMySQLUserTable which contains the userids to be authenticated
AuthMySQLPasswordField The name of the column in AuthMySQLUserTable which contains the passwords
AuthMySQLPwEncryption The encryption type used for the passwords in AuthMySQLPasswordField
AuthMySQLKeepAlive Indicates whether to keep the connection to MySQL open or close it after each request
AuthMySQLAuthoritative Used to indicate if other modules should be called when mod_auth_mysql is not able to authorize the user
AuthMySQLNoPasswd No password is required for this resource
AuthMySQLEnable Whether or not mod_auth_mysql should attempt to authorize the user
AuthMySQLUserCondition Additional conditions to be placed in the WHERE clause when retrieving user information
AuthMySQLGroupTable Contains the name of the table with the group information when authorizing by groups (Apache option require group)
AuthMySQLGroupField Contains the name of the column containing the group information when Apache group authorization is required
AuthMySQLGroupCondition Additional conditions to be placed in the WHERE clause when retrieving group information
AuthMySQLCharacterSet Used to override the default character set for the connection
AuthMySQLSaltField Contains information on the salt field to be used for crypt and aes encryption methods

Example of a .htaccess file using mod_auth_mysql

AuthName “Your Protected Area”
AuthType Basic
AuthBasicAuthoritative Off
AuthMySQLEnable On
AuthMySQLUser <userid>
AuthMySQLPassword <password>
AuthMySQLDB <database name>
AuthMySQLUserTable <user table>
AuthMySQLPasswordField <password field name>
AuthMySQLPwEncryption <encryption method>
AuthMySQLAuthoritative On
AuthMySQLGroupTable <group table>
AuthMySQLGroupField <group field name>

Click here for more details about each directive and its usage >>

Tags: , , , , , , , , , , ,

14 Aug 10 Can I serve WAP Files?

Yes, Gossimer does indeed allow you to serve WAP files.

To enable the Web Server to serve WAP documents, you need to set the following MIME types on the web server: 

  • text/vnd.wap.wml for .wml files (WML source files)
  • application/vnd.wap.wmlc for .wmlc files (WML compiled files)
  • text/vnd.wap.wmlscript for .wmls files (WMLScript source files)
  • application/vnd.wap.wmlscriptc for .wmlsc files (WMLScript compiled files)
  • image/vnd.wap.wbmp for .wbmp files (wireless bitmaps)

If you use the Apache Web server add the following lines in the  ..Apache GroupApache2confmime.types file:

  • text/vnd.wap.wml   wml
  • application/vnd.wap.wmlc   wmlc
  • text/vnd.wap.wmlscript   wmls
  • application/vnd.wap.wmlscriptc   wmlsc
  • image/vnd.wap.wbmp   wbmp

Our servers are already preconfigured to serve files.

§ What is WAP?

WAP stands for Wireless Application Protocol. You would use WAP to serve information from your website to wireless devices such as mobile phones, pagers and communicators.

Tags: , , , , , , , , , , , , , , , , , , , , , , ,