Quote:
Originally posted by alex79
how can i use same folder to 2 or many domains?
for example i want use a single folder and domain1.com/folder/ and domain2.com/folder/ to display same folder content
|
Just setup in the httpd.conf file so that both domains go to the same folder.
<VirtualHost 1.2.3.4:80>
ServerName domain1.com
DocumentRoot /home/folder/public_html
ServerAlias *.domain1.com domain2.com *.domain2.com
</VirtualHost>
Or make two of the above but with each domain instead of the Sever Alias. Just have both domains use the same ip address. The same thing that "some_idiot" said.