#1 (permalink)  
Old 06-16-2009, 08:47 AM
nileshparmar's Avatar
Registered User
 
Join Date: Nov 2007
Posts: 368
nileshparmar is an unknown quantity at this point
Arrow Tweak mod_userdir Security

mod_userdir Protection:
Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example http://test.cpanel.net/~fred/ will bring up the user fred's domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.cpanel.net). mod_userdir protection prevents this from happening. You may however want to disable it on specific virtual hosts (generally shared ssl hosts.)

We have enabled mod_userdir Protection for all our users but some our clients want to view their website via For example http://test.cpanel.net/~fred/

in this section there is mentioned that You may however want to disable it on specific virtual hosts (generally shared ssl hosts.)

but when i select a domain which i want to disable mod_userdir Protection & then ticked marked on Exclude Protection check box then i have restarted apache web server but still i am unable to view selected domain via IP based

now please tell what i m doing wrong ??

Please see attachment for further clarification
Attached Images
File Type: jpg mod_userdir Security.JPG (42.8 KB, 13 views)
__________________
Sincerely!
Nilesh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-16-2009, 11:45 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Lightbulb

Allowing userdir access is not the greatest of ideas for a lot of reasons ...

Something you might want to consider is setting up a subdomain alias
in the Apache configuration for the accounts that need to access their
sites before their domain DNS propagates, etc

In example:
Code:
Instead of http://www.yourdomain.com/~username,
it would be http://username.yourdomain.com/
Setting up something like this can be done fairly easily to be added
automatically to new accounts upon creation with wildcard DNS and
a few virtualhost template adjustments or just manually updating
if you only have a few hosts.

If you think this is something that would interest you, I'll post more
details about exactly how to set this up.

PS: The exclude you were talking about in your post excludes the site from protection
but not from being about to be viewed by ~username

Last edited by Spiral; 06-16-2009 at 11:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-17-2009, 01:32 AM
nileshparmar's Avatar
Registered User
 
Join Date: Nov 2007
Posts: 368
nileshparmar is an unknown quantity at this point
Arrow

It doesn't considered to subdomain aliases

mod_userdir Protection: means, clients cannot view their website via IP based for example http://11.11.111.11/~test

we have enable mod_userdir Protection for all our users but some clients wants to view their website via http://11.11.111.11/~test

what changes can be done this
__________________
Sincerely!
Nilesh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache mod_userdir Tweak Single User Solokron cPanel and WHM Discussions 1 06-09-2008 10:59 AM
mod_userdir tweak (~user) not working wills cPanel and WHM Discussions 1 12-31-2005 03:20 AM
mod_userdir Tweak is not working ? heavypredator cPanel and WHM Discussions 5 09-02-2005 04:01 PM
SMTP Tweak in whm/ tweak security 10101 cPanel and WHM Discussions 19 02-24-2004 01:59 PM
Tweak security gundamz cPanel and WHM Discussions 2 11-27-2003 10:16 PM


All times are GMT -5. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc