Jump to content

[SOLVED] Virtual Hosts


Minase

Recommended Posts

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

now thats really weird  :o

<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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.