Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    2

    Default mod_layout...how to use?

    I don't know if this really fits here, since im a newb at WHM stuff..but this seems to be one of those intermidate-advanced problems..

    Anyway, I have mod_layout installed on my server..but I dont have any clue as to how to use it. I'm still pretty un-familiar with SSH and the server thing. After reading that I have to edit my httpd.conf I got a bit scared as I don't want to mess up my server.

    Can anyone give me a basic alignment of what I need to do in order to put ads on my user's sites? I have 3 hosting packages, are there anyway to force ads on just 2 of them?

    I don't have a single clue as of what to do right now.

    Thanks
    Ken.

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Yes. You can force ads in header or footer on any site. You just would have to create a file containing your ads and save it as somead.html in say /usr/local/apache/htdocs

    Then do the addition within the <VirtualHost> </VirtualHost> section of the given site.
    The documentation of mod_layout is pretty simple, short and self explanatory.

    Editing httpd.conf is easiest way to do as you know what you are doing....

    example of having a footer ad on a given site is:

    <IfModule mod_layout.c>
    LayoutFooter "/usr/local/apache/htdocs/someadfooter.html"
    </IfModule>

    Then all the pages on the given site would carry footer ads containing whatever you put up in the someadfooter.html file. There could be problems for framed sites, however.

    Hope this helps
    Anup

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    2

    Default

    thanks, how I do put ads on every site though?

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Repeat for each VirtualHost to be safe. This way you could really see that in case the site is a framed one, you could ignore that site

    Anup

Similar Threads & Tags
Similar threads

  1. mod_layout
    By phantom in forum cPanel and WHM Discussions
    Replies: 38
    Last Post: 12-31-2006, 07:50 PM
  2. Please help me with mod_layout
    By hexstar in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-23-2006, 05:02 PM
  3. How do you install mod_layout?
    By Valetia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-29-2003, 08:24 AM
  4. Mod_layout
    By mbarb in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-17-2002, 04:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube