Hello! I have a little issue in my server configuration. When I write in address bar www.domain.com the website appear correctly, but if I write only domain.com without www. the It Works! apache page is loaded. It is happening in all domains of the server. I have ubuntu hardy heron, apache2 and any panel (all with sites enabled, available, etc.) Anybody know why it is happening? Thank you very much!
Hello! Thank you for your reply! I am really lost with this, I searched in the forum about it and didn't find solution. My question is how can I create this "co-domain" ? I haven't got ispconfig installed. Thank you
This made me think that you have ISPConfig ... sry ... I thinks that you should have in local-host-names: www.user1.com user1.com and in /etc/apache2/vhosts/Vhosts.conf ServerAlias user1.com under ServerName www.user1.com:80 section of VirtualHost but maybe you need to change something else.
Hi Thanks for your reply! I have another issue if it help: I have few domains in the server, for example domain1.com and domain2.com If I write the domain name domain1.com and the folder directory of the other domain2 it will show the website of the domain2. It happened only if we didn't add the www. before domain. I mean: http://domain1.com/directoryofdomain2 It is very strange. I wait your news, Thank you very much!!!
Hello I took the info from: http://wiki.gandi.net/en/hosting/using-linux/tutorials/ubuntu/virtualhosts I found another issue, and I think is the same crap: I made a code to know the memory used by my scripts and I put below config.php file of all all my sites (several domains) Well, Imagine that I have domain1.com domain2.com and domain3.com Each domain use a memory of 10Mb (I tested in the past) Now happened the following: I open domain1 website and display that I am using 10Mb I open domain2 website and display that I am using 20Mb I open domain3 website and display that I am using 30Mb Seems that the domain1 take the domain2, and domain3 take domain1 and domain2 to operate. So the conclusion is that the domains are connected from virtualhost like you told me, but where? I have no idea. Have you got any idea with my updated issue? Thank you very much!