Results 1 to 9 of 9

Thread: How to I tell Apache to include a file?

  1. #1
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367

    How to I tell Apache to include a file?

    Hi again

    I know you can set Apache 1.3x to include a file anytime a file is served... Just cant remember WHERE you set it and how... Can some of the Linux/Apache gurus help?

    Thanks

    :develish:


  2. #2
    Abstractt
    Guest

    Happy

    Hi DEVELISH,

    I think you can set that in the httpd.conf file of your server. In the section where you defined your domains.

    Or put the following lines in the .htaccess

    AddHandler server-parsed .html
    AddType text/html .html

    I'm not completly sure because it has been a while, but search on goolge then you find it rather quick

    Best Wishes,
    Arian


  3. #3
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    sorry, I do not mean parsing additional files as php or the like

    I once stumbled over a function which instructs apache to actually attach the contents of a file to each file served - as a header or footer...

    :develish:


  4. #4
    Abstractt
    Guest
    Can't help with that, never worked with!


  5. #5
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    are you talking about server side includes?


  6. #6
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    I dunno,

    ok, what I need is a php-script being includet in every html/php file (the include code for tracewatch that is and some other jazz which I outplaced in its own file)

    I looked into mod_include but for some reasons can not get it to work :-(

    :develish:


  7. #7
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    well, SSI is the easiest way to do this, you just have to setup your site to have SSI enabled and then create your includes, which automatically get forced onto every page within that site. How you do this depends on the server you are running (specifically the control panel software) but its all explained in their documentation.


  8. #8
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    Quote Originally Posted by Chilihost
    well, SSI is the easiest way to do this, you just have to setup your site to have SSI enabled and then create your includes, which automatically get forced onto every page within that site. How you do this depends on the server you are running (specifically the control panel software) but its all explained in their documentation.
    uhm - guess I go back playing with my server then

    Thanks Luke
    :develish:


  9. #9
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •