?
Solved

Limiting PHP interpreter

Posted on 2003-02-28
3
Medium Priority
?
244 Views
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.
0
Comment
Question by:The_Voice
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
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
</Directory>


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!

Kordau
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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