
9th December 2011, 17:08
|
|
Senior Member
|
|
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 159
Thanks: 39
Thanked 0 Times in 0 Posts
|
|
PHP in .html files
Hello,
PHP scripts does not work in archives .html like index.html, etc. I triying to fix it but allways come back to its original configuration. I like to do this change for all domains at once.
Where is the file with the configuration, because i had changed:
Code:
AddType application/x-httpd-php .php .php3 .php4 .html in /root/ispconfig/httpd/conf/httpd.conf
And this one:
Code:
/etc/apache2/vhosts/Vhosts_ispconfig.conf
AddType application/x-httpd-php .php .php3 .php4 .php5 .html
Thank you very much
|

10th December 2011, 11:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Make a copy of
/root/ispconfig/isp/conf/vhost.conf.master in the /root/ispconfig/isp/conf/customized_templates/ folder and then adjust /root/ispconfig/isp/conf/customized_templates/vhost.conf.master.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
rutame (10th December 2011)
|

10th December 2011, 16:13
|
|
Senior Member
|
|
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 159
Thanks: 39
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by falko
Make a copy of
/root/ispconfig/isp/conf/vhost.conf.master in the /root/ispconfig/isp/conf/customized_templates/ folder and then adjust /root/ispconfig/isp/conf/customized_templates/vhost.conf.master.
|
Thanks a lot Falko, is very usefull but that "fix" its for config the new vhost, is not it?
|

11th December 2011, 21:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
This configuration will also be used when you change an existing vhost in ISPConfig.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
rutame (12th December 2011)
|

13th December 2011, 16:40
|
|
Senior Member
|
|
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 159
Thanks: 39
Thanked 0 Times in 0 Posts
|
|
Hellow Falko,
I dont know how i can do that... that script is a little bit weird for me. What i should change?
Code:
{FP_RESOURCE_CONFIG}
{FP_ACCESS_CONFIG}
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
<!-- BEGIN DYNAMIC BLOCK: namevhost -->
{SERVERIP}
<!-- END DYNAMIC BLOCK: namevhost -->
#
#
<!-- BEGIN DYNAMIC BLOCK: vhost -->
######################################
# Vhost: {SERVERNAME}
######################################
#
#
<VirtualHost {IP}>
{HTTPD_INCLUDE}
{SUEXEC}
ServerName {SERVERNAME}
ServerAdmin {SERVERADMIN}
DocumentRoot {DOCUMENTROOT}
{SERVERALIAS}
{DIRECTORYINDEX}
{CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{RUBY}
{PYTHON}
{SSI}
{WAP}
{STATSALIAS}
{ERRORALIAS}
{ERROR}
AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
{REWRITE_RULE}
{FRONTPAGE}
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
{WEBDAV}
</VirtualHost>
#
{SSL}
#
#
<!-- END DYNAMIC BLOCK: vhost -->
Thank you very much
|

14th December 2011, 18:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Please try to add
Code:
AddType application/x-httpd-php .html
below the {PHP} line.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
rutame (15th December 2011)
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:26.
|
|
Recent comments
16 hours 38 min ago
23 hours 19 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 13 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 7 hours ago
2 days 7 hours ago