I have followed the instructions for creating a mult-domain setup for subdomains using the Contexts feature, as described here
http://svn.modxcms.com/docs/display/revolution/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts
I’ve followed the directions explicitly, however, for some reason, the browser wants to DOWNLOAD the page instead of displaying it. It’s acting like my server isn’t set up to serve PHP, but ONLY within this directory. Other file types display when called from this folder using the virtual subdomain.
I even went into my MODx installation and added explicitly defined a Content Type for PHP and it didn’t help.
I have even tried adding PHP directives to the VirtualHost container:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Any ideas?
Here are my specs.
Linux server (2.6.9-023stab048.6-enterprise)
Apache/2.2.3 (CentOS)
Mysql 5.0.45 (client AND server)
PDO driver for Mysql: yes
Gzip enabled
PHP Version 5.2.6
PHP running as an Apache module
PS: Is there any way to set directives for virtual host without having to edit the http.conf file?