Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Siroro

    Siroro Member

    Joined:
    Jul 5, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    It is. Change htaccess premission, owner and group.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sleddog

    sleddog Active Member

    Joined:
    Jun 13, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    156
    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:
    4
    Trophy Points:
    193
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice