virtualhost - NameVirtualHost bad behavior on 2 IPs and 3 DocumentRoot -


i have next apache virtualhosts , namevirtualhost settings:

namevirtualhost 10.100.106.89  <virtualhost 10.100.106.89>         documentroot /var/www/html/dev/novared_soporte/branches/v0.3/soporte         servername 10.100.106.89 </virtualhost> <virtualhost 10.100.106.89>         documentroot /var/www/html/phpmyadmin         servername 10.100.106.89/phpmyadmin         serveralias 10.100.106.89/pma </virtualhost> <virtualhost 10.100.106.90>         servername 10.100.106.90         documentroot /var/www/html </virtualhost> 

when try reach: 10.100.106.89 can site need: /var/www/html/dev/novared_soporte/branches/v0.3/soporte

but when try reach 10.100.106.89/phpmyadmin error on error_log.txt (httpd logs):

[thu jun 28 12:12:59 2012] [error] [client 10.100.103.31] file not exist: /var/www/html/dev/novared_soporte/branches/v0.3/soporte/phpmyadmin

i still cant mistake. way, 10.100.106.90 working properly, @ least documentroot /var/www/html

10.100.106.89/phpmyadmin not valid servername. needs either ip address or hostname/domain name. don't put paths in there.

use <location> block in first virtual server instead.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -