michelle
New member
Hello
I wondered if anyone could assist me, I need to add the following
"AddType application/x-httpd-php .html" to serve php through
.html files, but I am unsure which httpd.conf file to edit - /etc/httpd/conf or /usr/local/direcradmin/data/users/admin/httpd.conf.
I edited the latter last night by adding the 'AddType..' at the bottom:
<VirtualHost ...>
ServerName www.
ServerAlias www.
ServerAdmin webmaster DocumentRoot /home/admin/domains/..
User admin
Group admin
CustomLog /var/log/httpd/domains/ CustomLog /var/log/httpd/domains/ ErrorLog /var/log/httpd/domains/
<Directory /home/admin/domains/
Options +Includes -Indexes
php_admin_flag engine on
php_admin_flag safe_mode OFF
</Directory>
I added the type here before the close of the </VirtualHost>
Rebooted and proceeded to shutdown the apache server, so now I know I am doing something wrong - can anyone point me in the right dircetion - as to where I can add the 'AddType' into that <VirtualHost>
kind regards
Michelle
I wondered if anyone could assist me, I need to add the following
"AddType application/x-httpd-php .html" to serve php through
.html files, but I am unsure which httpd.conf file to edit - /etc/httpd/conf or /usr/local/direcradmin/data/users/admin/httpd.conf.
I edited the latter last night by adding the 'AddType..' at the bottom:
<VirtualHost ...>
ServerName www.
ServerAlias www.
ServerAdmin webmaster DocumentRoot /home/admin/domains/..
User admin
Group admin
CustomLog /var/log/httpd/domains/ CustomLog /var/log/httpd/domains/ ErrorLog /var/log/httpd/domains/
<Directory /home/admin/domains/
Options +Includes -Indexes
php_admin_flag engine on
php_admin_flag safe_mode OFF
</Directory>
I added the type here before the close of the </VirtualHost>
Rebooted and proceeded to shutdown the apache server, so now I know I am doing something wrong - can anyone point me in the right dircetion - as to where I can add the 'AddType' into that <VirtualHost>
kind regards
Michelle