Limiting PHP interpreter

Posted on 2003-02-28
Medium Priority
Last Modified: 2010-03-17
By going into the web server configuration, I know I can set it up so that HTML files can be sent through the PHP interpreter before being sent to a browser, but is there a way to set it up so that only HTML files from a specific location on the webserver will be sent through the PHP interpreter?  By this I mean in a directory called, 'display', the HTML files would go straight to the browser, but directory 'action' would send HTML files to the interpreter first.

Any help would be appreciated.
Question by:The_Voice
1 Comment

Accepted Solution

Kordau earned 200 total points
ID: 8162960
I can't get access to a test machine right now, but I think this will help do what you want...

<Directory /usr/local/httpd/htdocs/action>
     AllowOverride FileInfo
     AddType application/x-httpd-php .html

That would need to go in your httpd.conf file. Alternatively, you could drop those directives into a .htaccess file for the directory in question.

Hope that helps!


Featured Post

Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question