|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello I am using PHP as an module. Right now I have this AddType
directive: AddType application-x-php .php How do I configure Apache to parse PHP without a file extension. For example, if I have a PHP file named foo (without a file extension) how do I get Apache to parse it as such? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1159749296.314731.57190@i42g2000cwa.googlegroups. com>,
musiccomposition@gmail.com wrote: > Hello I am using PHP as an module. Right now I have this AddType > directive: > AddType application-x-php .php > How do I configure Apache to parse PHP without a file extension. For > example, if I have a PHP file named foo (without a file extension) how > do I get Apache to parse it as such? you might want to give a try to DefaultType directive. patpro -- http://www.patpro.net/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Add following in httpd.conf
<FilesMatch "^([^\.]+)$"> ForceType application/x-httpd-php </FilesMatch> patpro ~ patrick proniewski wrote: > In article <1159749296.314731.57190@i42g2000cwa.googlegroups. com>, > musiccomposition@gmail.com wrote: > > > Hello I am using PHP as an module. Right now I have this AddType > > directive: > > AddType application-x-php .php > > How do I configure Apache to parse PHP without a file extension. For > > example, if I have a PHP file named foo (without a file extension) how > > do I get Apache to parse it as such? > > you might want to give a try to DefaultType directive. > > patpro > > -- > http://www.patpro.net/ |
|
![]() |
| Outils de la discussion | |
|
|