![]() |
|
#1
|
|||
|
|||
httpd.conf configurationHi, I stumbled across this forum from a google search.
If I have PHP enabled on a directory (/home/apache/htdocs/), how do I make it so that everything under a certain directory will not run PHP files (/home/apache/htdocs/userfiles/)? Reason that I ask, is that I am going to offer some hosting and don't want them to have the access to run PHP files. |
|
#2
|
||||
|
||||
|
If you setup a virtual host or directory setting you can put one of the lines there to disable the PHP engine:
Code:
Code:
I should note that you should put the 'engine' flag in every <VirtualHost> section. There are a lot of bugs with this. setting the engine flag for every virtual host seems to solve those problems |
|
#3
|
||||
|
||||
|
Hello Tonyk,
Here's something else you can try... add this in the httpd.conf file where appropriate i.e. for the directory /home/apache/htdocs/userfiles/: Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading a .txt | bengaltgrs | CPP / C++ Forum | 8 | 21-Jan-2004 09:04 |
| total newbie need help | grunt123 | Apache Web Server Forum | 2 | 04-Dec-2003 11:14 |
| Problem with .htaccess | Zergus | Apache Web Server Forum | 7 | 29-Jul-2003 11:01 |
| PHP/mySQL backend configuration help needed | jrobbio | Web Design Forum | 2 | 17-Apr-2003 10:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The