The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom HTTPD configs

Discussion in 'General Discussion' started by Siroro, Jul 5, 2006.

  1. Siroro

    Siroro Member

    Joined:
    Jul 5, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I am wondering if it is possible to set httpd configs on a per-domain basis.

    Thanks :)
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    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. Siroro

    Siroro Member

    Joined:
    Jul 5, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
    It is. Change htaccess premission, owner and group.
     
  5. sleddog

    sleddog Active Member

    Joined:
    Jun 13, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Labrador, Canada
    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. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    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
     
Loading...

Share This Page