I have some issues with my Apache2 installation.
The last week by a hard disk failure I made a general backup, change the hard disk to a new one and install again all the SO (Debian 7 AMD64) and Apache2. I've restored all data from backup to the new disk.
I've configured again the virtual host with the same configuration like the last installation, but this time when I try to access to any virtual host except one that only host static content.
There's no error on Apache error files and also no error or warning during Apache startup. I've also checked permissions and owners at the file system.
Here's my config files:
apache2.conf
ServerRoot "/etc/apache2"
LockFile ${APACHE_LOCK_DIR}/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>
DefaultType None
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel debug
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Include conf.d/
Include httpd.conf
httpd.conf
<VirtualHost x.x.x.x:80>
DocumentRoot /home/www/hostname.domain.tld
ServerName hostname.domain.tld
ServerAdmin soporte@domain.tld
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/hostname.domain.tld>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost x.x.x.x:80>
DocumentRoot /home/www/static.domain.tld
ServerName static.domain.tld
ServerAdmin soporte@domain.tld
<Directory /home/www/static.domain.tld>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost x.x.x.x:80>
DocumentRoot /home/www/mail.anijapan.com
ServerName mail.domain.tld
ServerAdmin soporte@domain.tld
<Directory /home/www/mail.domain.tld>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost x.x.x.x:80>
DocumentRoot /home/www/bugs.domain.tld
ServerName bugs.domain.tld
ServerAdmin soporte@domain.tld
<Directory /home/www/bugs.domain.tld>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
ports.conf
NameVirtualHost x.x.x.x:80
Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
I've tried different things, looked in Google, etc without any result.
Anyone has some idea of my problem?
Thanks!