Minase Posted June 4, 2008 Share Posted June 4, 2008 hy all,i do use vhosts for a very long time,but now i got a problem :-\ in total i do have 20 vhosts hosted in the file but what is after the 17 vhost is pointing to the first vhost.... the first 17 hosts are configured in same way like the remaining 3,but the last 3 doesnt work well NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot PATH ServerName mydomain.com ErrorLog logs/mydomain.com-error_log CustomLog logs/mydomain.com-access_log common </VirtualHost> in the same way are configurated all 20 vhost,but the last 3 doesnt work,they point to the first,checked it create a log,but the log is empty,the directory that i point they exist and have files on them ofcourse i did replace the real path with PATH (dont think that i use PATH :-\ ) Link to comment https://forums.phpfreaks.com/topic/108683-solved-virtual-hosts/ Share on other sites More sharing options...
Minase Posted June 4, 2008 Author Share Posted June 4, 2008 now thats really weird <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot PATH\ns1 ServerName ns1.domain.com ErrorLog logs/ns1.domain.com-error_log CustomLog logs/ns1.domain.com-access_log common </VirtualHost> <VirtualHost *.:80> ServerAdmin [email protected] DocumentRoot PATH\ns2 ServerName ns2.domain.com ErrorLog logs/ns2.domain.com-error_log CustomLog logs/ns2.domain.com-access_log common </VirtualHost> thats really really weird ,no i did setup the A records if i copy and paste the second one in vhost it will not work... if i copy the first one,and edit the 1 with 2 it will work -.- problem solved,but im still curious why it is like this ??? Link to comment https://forums.phpfreaks.com/topic/108683-solved-virtual-hosts/#findComment-557319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.