[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] [raq4] php source type



I would like to be able to view the source of my php files by using the
extention .phps
I have added the line: AddType application/x-httpd-php-source .phps and
restarted httpd but it doesnt work. I have had this running before however
somehow it dissapeared... I'm not sure how.

This is how I currently have the site in my httpd.conf

NameVirtualHost 123.12.123.12
<VirtualHost 123.12.123.12>
ServerName www.mydomain.com
ServerAdmin site20
DocumentRoot /home/sites/site20/web
ServerAlias mydomain.com
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^123.12.123.12(:80)?$
RewriteCond %{HTTP_HOST}                !^www.mydomain.com(:80)?$
RewriteRule ^/(.*)                      http://www.mydomain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site20/users/$1/web/$3
# AddHandler chiliasp .asp
# AddHandler chiliasp .asa
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>

This should work.
And then i type /usr/sbin/http restart
Why does this not work?

Regards,
Kai