Musty
7th March 2008, 15:15
I installed F7 with webmin and configured my hosts file as follow:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.3 mydomain.org mydomain
192.168.2.3 sql.mydomain.org sql
192.168.2.3 mail.mydomain.org mail
192.168.2.3 smtp.mydomain.org smtp
192.168.2.3 pop.mydomain.org pop
192.168.2.3 www.mydomain.org www
192.168.2.3 alcboard.ath.cx free1
::1 localhost6.localdomain6 localhost6
First I installed phpmyadmin and set a virtualhost to point to it this way:
<VirtualHost *>
DocumentRoot /var/www/html/phpMyAdmin
ServerName sql.mydomain.org
<Directory "/var/www/html/phpMyAdmin">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
works fine! I get phpmyadmin login box and I can access it just fine.
Then I set a second Vhost this way:
<VirtualHost *>
DocumentRoot /var/www/html/dbm
ServerName www.mydomain.org
<Directory "/var/www/html/dbm">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
when I type www.mydomain.org I get phpmyadmin although directory is different.
Did I do anything wrong? Any help would be appreciated.
Thanks
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.3 mydomain.org mydomain
192.168.2.3 sql.mydomain.org sql
192.168.2.3 mail.mydomain.org mail
192.168.2.3 smtp.mydomain.org smtp
192.168.2.3 pop.mydomain.org pop
192.168.2.3 www.mydomain.org www
192.168.2.3 alcboard.ath.cx free1
::1 localhost6.localdomain6 localhost6
First I installed phpmyadmin and set a virtualhost to point to it this way:
<VirtualHost *>
DocumentRoot /var/www/html/phpMyAdmin
ServerName sql.mydomain.org
<Directory "/var/www/html/phpMyAdmin">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
works fine! I get phpmyadmin login box and I can access it just fine.
Then I set a second Vhost this way:
<VirtualHost *>
DocumentRoot /var/www/html/dbm
ServerName www.mydomain.org
<Directory "/var/www/html/dbm">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
when I type www.mydomain.org I get phpmyadmin although directory is different.
Did I do anything wrong? Any help would be appreciated.
Thanks