Hello, I got a little weird problem (probably easy to solve), but I can't find it. I created a new website in the ispconfig interface. Files and folders were created without a problem. I've copied the sites sources in the website folder and the site works when going to xxx.xxx.xxx.xxx/website Sadly when I got to website.domain.com I'm being send to the first website I have in the sites-available folder (meaning my A record works fine, but apache screws things up). I got 14 sites, this is the only one not working, what could be wrong ? (Ive already restarted apache2). Here is the vhost : Code: <Directory /var/www/site.domain.com> AllowOverride None Order Deny,Allow Deny from all </Directory> <VirtualHost 88.190.200.XXX:80> DocumentRoot /var/www/site.domain.com/web ServerName site.domain.com ServerAdmin [email protected] ErrorLog /var/log/ispconfig/httpd/site.domain.com/error.log Alias /error/ "/var/www/site.domain.com/web/error/" 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 502 /error/502.html ErrorDocument 503 /error/503.html <IfModule mod_ssl.c> </IfModule> <Directory /var/www/site.domain.com/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Directory /var/www/clients/client0/web14/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # suexec enabled <IfModule mod_suexec.c> SuexecUserGroup web14 client0 </IfModule> # Clear PHP settings of this website <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]" php_admin_value upload_tmp_dir /var/www/clients/client0/web14/tmp php_admin_value session.save_path /var/www/clients/client0/web14/tmp # PHPIniDir /var/www/conf/web14 php_admin_value open_basedir /var/www/clients/client0/web14/web:/var/www/clients/client0/web14/private:/var/www/clients/client0/web14/tmp:/var/www/site.domain.com/web:/srv/www/site.domain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/site:/etc/site:/var/lib/site:/usr/share/php # add support for apache mpm_itk <IfModule mpm_itk_module> AssignUserId web14 client0 </IfModule> <IfModule mod_dav_fs.c> # Do not execute PHP files in webdav directory <Directory /var/www/clients/client0/web14/webdav> <ifModule mod_security2.c> SecRuleRemoveById 960015 SecRuleRemoveById 960032 </ifModule> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> </Directory> DavLockDB /var/www/clients/client0/web14/tmp/DavLock # DO NOT REMOVE THE COMMENTS! # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE! # WEBDAV BEGIN # WEBDAV END </IfModule> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost> <VirtualHost 88.190.200.XXX:443> DocumentRoot /var/www/site.domain.com/web ServerName site.domain.com ServerAdmin [email protected] ErrorLog /var/log/ispconfig/httpd/site.domain.com/error.log Alias /error/ "/var/www/site.domain.com/web/error/" 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 502 /error/502.html ErrorDocument 503 /error/503.html <IfModule mod_ssl.c> SSLEngine on SSLCertificateFile /var/www/clients/client0/web14/ssl/site.domain.com.crt SSLCertificateKeyFile /var/www/clients/client0/web14/ssl/site.domain.com.key </IfModule> <Directory /var/www/site.domain.com/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Directory /var/www/clients/client0/web14/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # suexec enabled <IfModule mod_suexec.c> SuexecUserGroup web14 client0 </IfModule> # Clear PHP settings of this website <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]" php_admin_value upload_tmp_dir /var/www/clients/client0/web14/tmp php_admin_value session.save_path /var/www/clients/client0/web14/tmp # PHPIniDir /var/www/conf/web14 php_admin_value open_basedir /var/www/clients/client0/web14/web:/var/www/clients/client0/web14/private:/var/www/clients/client0/web14/tmp:/var/www/site.domain.com/web:/srv/www/site.domain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/site:/etc/site:/var/lib/site:/usr/share/php # add support for apache mpm_itk <IfModule mpm_itk_module> AssignUserId web14 client0 </IfModule> <IfModule mod_dav_fs.c> # Do not execute PHP files in webdav directory <Directory /var/www/clients/client0/web14/webdav> <ifModule mod_security2.c> SecRuleRemoveById 960015 SecRuleRemoveById 960032 </ifModule> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> </Directory> DavLockDB /var/www/clients/client0/web14/tmp/DavLock # DO NOT REMOVE THE COMMENTS! # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE! # WEBDAV BEGIN # WEBDAV END </IfModule> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost>
I deleted the site and created it again and the same problem seems to happen. Could it be related to the fact I named it phpmyadmin.domain.com ? (Some kind of reserved name ?)
This mans that apache cant match the domain name with the vhost. Possible reasons are: typo in IP, ip in dns and vhost dont match, typo in domain, apache hangs and does not pickup config changes. No.
yeah I know Till, I checked like 3 times and everything was fine. BUT, the good news is, the problem is now solved. In fact I don't know where the issue was, but I changed the IP adress from my server (my ISP assigned a new IP address to my server some time ago and I had 6 month to change it, so I did it). And now after recreating all the A records everything works...