Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2007, 12:09
bahadircolak bahadircolak is offline
Junior Member
 
Join Date: Jan 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Question Showing "This is a shared IP" ??

I've created a new site, then created ns1.mysitecom and ns2.mysite.com style name servers (A records in DNS manager). Then I've changed NS and DNS settings in GoDaddy. Redirection is ok but the site shows "This is a shared IP message". And nothing happens when I change index.html in the site's folder.

In this machine I have nearly 30 domains. All of them works... Suddenly this one started to act like this... I'm suprised... I tried to recreate it... Also compared the records of a working site with this new one. Everything looks ok... But it shows shared IP message....

Anybody has an idea?

BTW: I've searched the posts here and deleted www in codomains (actually there was no www?). Also increased domain limit to 100. Also IP address is right. As I said, there are nearly 30 websites but onen of them shows this page... There must be something wrong...

Thanks

Last edited by bahadircolak; 7th June 2007 at 13:34.
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2007, 13:38
bahadircolak bahadircolak is offline
Junior Member
 
Join Date: Jan 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ok ok solved...

Very interesting thing but the error was an Apache directive. But in another domain! How can they affect each other???

There was an error in an Apache directive in a domain, and another domain starts to show Shared IP page....

Is it a bug?

Thanks
Reply With Quote
  #3  
Old 8th June 2007, 13:03
Tommahawk Tommahawk is offline
Member
 
Join Date: May 2007
Posts: 70
Thanks: 0
Thanked 10 Times in 5 Posts
Default

How can I stop ISPConfig ( where to delete ) writing the below virtual host in the Vhost include file because it causes the shared IP page on localhost, all sites then point to the same page on localhost because I keep a host file in order to access site locally

<VirtualHost 192.168.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
Reply With Quote
  #4  
Old 8th June 2007, 16:52
mlz mlz is offline
Senior Member
 
Join Date: Dec 2006
Posts: 189
Thanks: 16
Thanked 9 Times in 9 Posts
Default

I would think that you could put your local virt after the include statement in httpd.conf that loads the vhosts file, then it would be after all the vhosts.
Reply With Quote
  #5  
Old 8th June 2007, 18:28
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

Quote:
Originally Posted by Tommahawk
How can I stop ISPConfig ( where to delete ) writing the below virtual host in the Vhost include file because it causes the shared IP page on localhost, all sites then point to the same page on localhost because I keep a host file in order to access site locally

<VirtualHost 192.168.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
You must alter the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
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
  #6  
Old 9th June 2007, 17:55
Tommahawk Tommahawk is offline
Member
 
Join Date: May 2007
Posts: 70
Thanks: 0
Thanked 10 Times in 5 Posts
Default

What I actually had to do is in config.lib.php is change the lines to

From:
// $mod->tpl->assign( array(SERVERIP => "NameVirtualHost ".$ip["server_ip"].$web_port."
To:
$mod->tpl->assign( array(SERVERIP => "NameVirtualHost *".$web_port."
and I commended out this
#<VirtualHost ".$ip["server_ip"].$web_port.">
# ServerName localhost
# ServerAdmin root@localhost
# DocumentRoot /var/www/sharedip
#</VirtualHost>"));

It still prints the commented lines in the vhost file but does not break anything. This works ok except I need to get ISPConfig to create news virtual hosts as <Virtualhost *:80> rather than <virtualhost 192.168.0.1:80>

I'd rather not touch it in the database as I do not want to break something else that may be relying on and IP address and not an asterisk symbol so I have to change it in the /root/ispconfig/isp/conf/vhost.conf.master to read <VirtualHost *:80> instead of {IP}

I also took mlz advice and it all look fixed and working now Thanks

Last edited by Tommahawk; 9th June 2007 at 17:57.
Reply With Quote
  #7  
Old 15th June 2007, 01:18
mindlab mindlab is offline
Junior Member
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Shared Ip

Just created a new site with the server's domain name. ;)

Last edited by mindlab; 15th June 2007 at 09:49.
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
Totally Confused DNS & Shared IP Hawker Installation/Configuration 7 2nd March 2007 08:33
php files not showing properly (as text) pimvh Server Operation 11 5th October 2006 16:39
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
How do you set up shared hosting? PorkFat Installation/Configuration 3 29th December 2005 12:11
Shared IP, where is the default page of my websites ? jeanjacquesjeanjacques Installation/Configuration 4 12th December 2005 22:00


All times are GMT +2. The time now is 09:00.


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