Quote:
Originally Posted by till
Thats all pretty fine. You forgot to mention that a.com and b.com are not two independant websites. A.com is a alias or subdomain of b.com, so ISPconfig has to modify b.com as a aliases of vhostsvare defined in the same vhost file of course.
|
There was a problem there, I fixed it, but leave that.
Now the obvious problem is
The Auto-Subdomain www
Isn't work
It doesn't add the redirect rule to vhost file
2009-03-26 15:27 ispconfig Debug Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
2009-03-26 15:27 ispconfig Debug Call function 'restartHttpd' in module 'web_module'.
2009-03-26 15:27 ispconfig Debug Processed datalog_id 620
2009-03-26 15:27 ispconfig Debug Writing the vhost file: /etc/apache2/sites-available/a.vhost
2009-03-26 15:27 ispconfig Debug Add server alias: c
2009-03-26 15:27 ispconfig Debug Add server alias: b
2009-03-26 15:27 ispconfig Debug Disable SSL for: a
2009-03-26 15:27 ispconfig Debug Call function 'update' in plugin 'apache2_plugin' raised by event 'web_domain_update'.
2009-03-26 15:27 ispconfig Debug Call function 'ssl' in plugin 'apache2_plugin' raised by event 'web_domain_update'.
2009-03-26 15:27 ispconfig Debug Found 1 changes, starting update process.
2009-03-26 15:27 ispconfig Debug Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
a.vhost
Code:
<Directory /var/www/a>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/a/web
ServerName a
ServerAlias www.a www.b b www.c c
ServerAdmin webmaster@a
ErrorLog /var/log/ispconfig/httpd/a/error.log
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
<Directory /var/www/a/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
<Directory /var/clients/client1/web1/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@a"
php_admin_value upload_tmp_dir /var/clients/client1/web1/tmp
php_admin_value session.save_path /var/clients/client1/web1/tmp
#php_admin_value open_basedir /var/clients/client1/web1:/usr/share/php5
RewriteEngine on
RewriteCond %{HTTP_HOST} ^b [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^www.b [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^c [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^www.c [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
</VirtualHost>
As you see there is not the a ->
www.a rule
Recent comments
2 days 15 hours ago
2 days 23 hours ago
3 days 2 hours ago
3 days 4 hours ago
3 days 5 hours ago
3 days 7 hours ago
3 days 8 hours ago
3 days 9 hours ago
4 days 1 hour ago
4 days 2 hours ago