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.
>> 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:
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.
>> 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:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
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 are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.