Quote:
|
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.
Code:
<Directory /var/www/web1/web>
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_php4.c>
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
</IfModule>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [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
</IfModule>
Quote:
|
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.
Recent comments
3 hours 55 min ago
10 hours 36 min ago
14 hours 26 min ago
16 hours 5 min ago
1 day 30 min ago
1 day 9 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 19 hours ago