Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2005, 09:10
Tribal-Dolphin Tribal-Dolphin is offline
Member
 
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default Virtual Host for Shared IP

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:
 
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.
Reply With Quote
Sponsored Links
  #2  
Old 6th August 2005, 13:56
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

That's a good idea!
__________________
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
  #3  
Old 24th October 2005, 20:39
Tribal-Dolphin Tribal-Dolphin is offline
Member
 
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm realising this and i've a question :

Does the function make_vhost($server_id) in lib/config.lib.php rewrite all the Vhosts_ispconfig.conf file ?

Thanks.
__________________
Tribal-Dolphin
www.tribal-dolphin.net
Reply With Quote
  #4  
Old 24th October 2005, 20:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
 
Default

Yes, it rewrites the complete file. And yes, this may need to be a bit optimized
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Hosting with Postfix alexej HOWTO-Related Questions 26 27th May 2006 05:46


All times are GMT +2. The time now is 01:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.