View Single Post
  #3  
Old 6th August 2005, 13:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

We should add this idea from Tribal-Dolphin to our roadmap:

Quote:
Create a virtual host Apache for the IP having several sites to avoid that the access by IP shows the first created site.

Something like that :
Code:

Code:
NameVirtualHost 192.168.1.2:80 
NameVirtualHost 192.168.1.2:443 

<VirtualHost 192.168.1.2:80> 
  ServerName shared.domain 
  DocumentRoot /var/www/sharedip 
  User www-data 
  Group www-data 
</VirtualHost> 

<VirtualHost 192.168.1.2:443> 
  SSLEngine on 
  SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt 
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key 
  ServerName shared.domain 
  DocumentRoot /var/www/sharedip 
  User www-data 
  Group www-data 
</VirtualHost>

and create a simple index.html file into the directory to display :
This IP is a shared IP. You can access to the requested website by typing the URL instead of IP in your favorite browser.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote