Apache mod_userdir Tweak

mod_userdir is most commonly used as a temporary url  system allowing users to view their websites even when the DNS has not pointing to the server.

You can find this here in root WHM : (Home >> Security Center >> Apache mod_userdir Tweak)

The mod_userdir Apache module allows visitors to access websites on your server by entering a hostname or domain, followed by a tilde (~) and the website owner’s username as the directory path part of the url. Examples:

Preventing mod_userdir access to all users and domains

  1. Click the Enable mod_userdir Protection checkbox.
  2. Click the Save button at the bottom of the page.

Allowing specific Sites (for user ,allow all sites under user)

You can allow specified websites via mod_userdir.

  1. Click the Enable mod_userdir Protection checkbox at the top of the page
  2. check Exclude Protection checkbox  to access his or her site via a mod_userdir url.
  3. Click the Save button at the bottom of the page.

Warnings

When using mod_userdir, you should know:

  • When using suPHP as your PHP handler, users will not be able to run PHP scripts via mod_userdir
  • If you want to enable mod_userdir so that shared SSL certificates can be used, you will need to either add users to, or exclude protection from, the virtual host for the domain to which the certificate was issued.
  • Sites that use mod_rewrite and other directives in their .htaccess files will not work as expected when viewed using mod_userdir URLs.
  •  The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s