Hello Falko.
Quote:
Originally Posted by falko
You can create such vhosts in the main Apache configuration (right before Vhosts_ispconfig.conf gets included).
|
But how to use name based vhosts before of "NameVirtualHost <IP>:80", which is included in Vhosts_ispconfig.conf? [1]
I tried to include some RewriteCond/RewriteRule into the first ("catch-all") VirtualHost of Vhosts_ispconfig.conf, but this configuration got removed (as expected...)
What i want to do: Redirect webmail.* and mailuser.* (for all domains without the need to configure every single domain) to two different locations.
The rewrite part is:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail\.(.*) [NC]
RewriteRule .* https://<IP>:81/squirrelmail/src/login.php [L,R]
RewriteCond %{HTTP_HOST} ^mailuser\.(.*) [NC]
RewriteRule .* https://<IP>:81/mailuser/login/index.php [L,R]
How can i include this rewrites?
[1] "The NameVirtualHost directive is a required directive if you want to configure name-based virtual hosts."
http://httpd.apache.org/docs/2.2/en/...amevirtualhost
Recent comments
1 day 7 hours ago
1 day 7 hours ago
1 day 12 hours ago
1 day 19 hours ago
1 day 20 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 8 hours ago
2 days 12 hours ago
2 days 14 hours ago