Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

david68
Joined: May 16, 2005
# Posts: 144

View the profile for david68 Send david68 a private message

Posted: 07/09/2007 10:22 am
Edit Message Delete Message Reply to this message

php_value auto_prepend_file file.php

This value is in my .htaccess file to automatically prepend a script to all my scripts. My question is, is there a setting for apache to apply this to all users on a server and prevent it from being overridden?

If yes, "AddType application/x-httpd-php .php .html" would parse html as php, how do I set that globally without allowing override?

Basically I want to force a banner script on all accounts (and pages php/htm/html/shtml) without using something like ipanel.

Thanks.




Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721

View the profile for Prowler Send Prowler a private message

Posted: 07/10/2007 10:19 pm
Edit Message Delete Message Reply to this message

>> is there a setting for apache to apply this to all users on a server and prevent it from being overridden?

Yes. But it also has a flip side. You can set a restrictive directive in the httpd.conf
Look under:


Code: [copy]





To quote from the Apache manual :

When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files.

The directive-type can be one of the following groupings of directives.

AuthConfig
Allow use of the authorization directives (AuthDBMGroupFile, AuthDBMUserFile, AuthGroupFile, AuthName, AuthType, AuthUserFile, Require, etc.).
FileInfo
Allow use of the directives controlling document types (DefaultType, ErrorDocument, ForceType, LanguagePriority, SetHandler, SetInputFilter, SetOutputFilter, and mod_mime Add* and Remove* directives, etc.).
Indexes
Allow use of the directives controlling directory indexing (AddDescription, AddIcon, AddIconByEncoding, AddIconByType, DefaultIcon, DirectoryIndex, FancyIndexing, HeaderName, IndexIgnore, IndexOptions, ReadmeName, etc.).
Limit
Allow use of the directives controlling host access (Allow, Deny and Order).
Options
Allow use of the directives controlling specific directory features (Options and XBitHack).


All the above presupposes that you have root access to the server.



david68
Joined: May 16, 2005
# Posts: 144

View the profile for david68 Send david68 a private message

Posted: 07/11/2007 12:06 pm
Edit Message Delete Message Reply to this message

>> All the above presupposes that you have root access to the server.

Yes, I will. Thanks for the info. "ipanel" allows placement of ads on pages automatically but I was thinking auto_prepend might be faster and allow me to set diferent ads for different types of websites. I'll have to look into it further.



You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions