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 admin@mydomain.com
    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
Share on other sites

now thats really weird  :o

<VirtualHost *:80>
    ServerAdmin webmaster@ns1.domain.com
    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 admin@ns2.domain.com
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.