[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [raq4] php source type
- Subject: [cobalt-users] [raq4] php source type
- From: "Kai Deecke" <go@xxxxxxxxxxxx>
- Date: Fri Jan 4 20:42:06 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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