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.

.htaccess

Discussion in 'General Discussion' started by phantom, Oct 10, 2002.

  1. phantom

    phantom Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Hi,
    I want to add a certain .htaccess file to every domain on my server. I have 2 questions

    1. How can I have it so it's added automatically

    2. how can I make it so the domain user cannot modify it or delete it.

    Thanks!
     
  2. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I dont beleive there is a way to automagically add it, other than creating the .htaccess file within your skel directory, however, when it is added to new accounts, it, I beleive, is then chowned to the user/group of the account owner.

    What exactly are you trying to do. I am sure you will probably be able to add it to the server config files and thereby taking effect globally.
     
  3. phantom

    phantom Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    I'm trying to add headers and footers on each page for each domain using a small cgi script. I want to use mod_layout but have not found any good instructions on how to install it.

    There is an RPM for mod_layout. What are the chances of Nick adding it to the RPM installer. I'd much rather use an apache mod than a cgi script.
     
Loading...

Share This Page