Originally Posted by akaiser
I've put this code in /etc/apache/vhosts/Vhosts_ispconfig.conf instead of the code generated by ispconfig for the site. Is this correct?
This wont work because ISPConfig will overwrite it. The Vhost_ispconfig.conf file is not for manual editing.
Put the code below in the apache directives field of the website (at the bottom of the website form), ISPConfig will parse the content into the vhost for you.
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/share/icons/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug\.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
RewriteRule .* /index.php
When I go to admin.domain.com I get the default IspConfig page ("Shared IP. his IP address is shared...") when accesing www.domain.com all is ok.
ISPConfig uses namebased vhosts that can only be accessed trough the domain and not trough the IP.