Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2006
    Posts
    7

    Default Custom HTTPD configs

    Hi,
    I am wondering if it is possible to set httpd configs on a per-domain basis.

    Thanks

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Settings within a VirtualHost container will, if allowed there in the first place, work only for the relevant domain. Have a look at /usr/local/apache/conf/httpd.conf.

    You can also do plenty with local .htaccess files.

  3. #3
    Member
    Join Date
    Jul 2006
    Posts
    7

    Default

    Hello, thanks, I was wondering if it was possible to make the user unable to modify .htaccess and/or other files placed in their directory.
    Thanks

  4. #4
    Member
    Join Date
    Apr 2005
    Posts
    318

    Default

    It is. Change htaccess premission, owner and group.
    http://www.crohoster.com/
    quality hosting services and managed dedicated servers

  5. #5
    Member sleddog's Avatar
    Join Date
    Jun 2004
    Location
    Labrador, Canada
    Posts
    44

    Default

    I don't think so. If you place a file with permissions 600 and ownership root:root in a user's home directory, that user will still be able to edit or delete the file.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by MMarko
    It is. Change htaccess premission, owner and group.
    I am sorry, MMarko, but sleddog is right. Your can delete a file even if you chagne its permission and ownership. The best way around this issue is to SSH as root/su and:
    chattr +i WHATEVER_FILE
    Andy Reed
    RHCE and CCNA
    ServerTune.com

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 09-19-2010, 09:51 PM
  2. Custom HTTPD Configurations
    By diagofox in forum New User Questions
    Replies: 1
    Last Post: 11-18-2008, 09:43 AM
  3. Awstats and custom configs
    By internetfab in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-30-2008, 07:18 AM
  4. custom httpd templates
    By Bartuc in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-16-2008, 01:53 PM
  5. Disabling local mail routing, other custom configs
    By meeven in forum E-mail Discussions
    Replies: 0
    Last Post: 08-31-2007, 02:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube