This is what is happening.
When i disable the vhost "default" site from sites-available, ispconfig site and mail site get a 404 error when going to the url.
So, when the vhost "default" site is enabled all other sites are working fine.
I have searched for a global config on apache and ispconfig, but no cigar.
Any help will be apreciated. Thanks in advanced.
My setup:
Code:
web:~# ls -la /etc/apache2/sites-available/
total 44
drwxr-xr-x 2 root root 4096 2011-01-09 22:13 .
drwxr-xr-x 7 root root 4096 2010-08-25 21:10 ..
-rw-r--r-- 1 root root 1014 2011-01-09 20:37 apps.vhost
-rw-r--r-- 1 root root 953 2011-01-09 20:55 default
-rw-r--r-- 1 root root 953 2011-01-09 20:50 default.bak
-rw-r--r-- 1 root root 7366 2010-04-19 14:55 default-ssl
-rw-r--r-- 1 root root 1055 2011-01-09 22:23 ispconfig.conf
-rw-r--r-- 1 root root 1598 2011-01-09 22:04 ispconfig.vhost
-rw-r--r-- 1 root root 1700 2011-01-09 22:24 mail.XXX.com.vhost
-rw-r--r-- 1 root root 1707 2011-01-09 22:13 mail.XXX.com.vhost.bak
------------------------------------------------------------------------------------
Code:
web:~# ls -la /etc/apache2/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 2011-01-09 20:59 .
drwxr-xr-x 7 root root 4096 2010-08-25 21:10 ..
lrwxrwxrwx 1 root root 39 2010-08-25 22:20 000-apps.vhost -> /etc/apache2/sites-available/apps.vhost
lrwxrwxrwx 1 root root 43 2010-08-25 22:20 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf
lrwxrwxrwx 1 root root 44 2010-08-25 22:21 000-ispconfig.vhost -> /etc/apache2/sites-available/ispconfig.vhost
lrwxrwxrwx 1 root root 50 2011-01-08 23:31 mail.XXX.com.vhost -> /etc/apache2/sites-available/mail.XXX.com.vhost
Code:
web:~# cat /etc/apache2/sites-enabled/mail.XXX.com.vhost
<Directory /var/www>
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/mail.XXX.com/web
ServerName mail.XXX.com
ServerAdmin webmaster@mail.XXX.com
ErrorLog /var/log/ispconfig/httpd/mail.XXX.com/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/mail.XXX.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files ~ '.php[s3-6]{0,1}$'>
Order allow,deny
Deny from all
Allow from none
</Files>
</Directory>
<Directory /var/www/clients/client2/web5/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files ~ '.php[s3-6]{0,1}$'>
Order allow,deny
Deny from all
Allow from none
</Files>
</Directory>
# cgi enabled
<Directory /var/www/clients/client2/web5/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client2/web5/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web5 client2
</IfModule>
</VirtualHost>
Code:
web:~# cat /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options none FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options none FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Recent comments
1 day 12 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 6 hours ago