#1  
Old 10th October 2010, 10:07
Perilla Perilla is offline
Junior Member
 
Join Date: Oct 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Exclamation Shared IP problem again... :)

1 of 5 ip's work good.
But if i add domain to another ip i see Shared IP page.

In "hosts" (hosts file on my local computer win7) file i add x.x.x.10 www.domain.com
In browser www.domain.com work fine, but domain.com Shared IP.

If i ping domain.com i see another IP, one that always works. But domain bound to another ip, .10
If i ping www.domain.com i see needed IP (hosts file).


------------------------------------------------------------------
What i try?

Quote:
$go_info["server"]["apache2_php"] = 'suphp';
$go_info["server"]["apache2_php"] = 'both';
I edit config.inc suphp, addtype, both - did not help.

Quote:
1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_.... that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
3) run

httpd -t
to get the error message.
I try to make this. No errors.

I'm looking to Vhosts_ispconfig.conf, all ok i think. Domains with needed IP's.


I use external DNS.

Last edited by Perilla; 10th October 2010 at 12:13.
Reply With Quote
Sponsored Links
  #2  
Old 10th October 2010, 12:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

You have to add a record in /etc/hosts or dns for every domain or subdomain that you want to use. as you added only a record for www.domain.tld, then it works only for www.domain.tld and not without www. So if you add a record for the domain without www, then it will work without www as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th October 2010, 12:15
Perilla Perilla is offline
Junior Member
 
Join Date: Oct 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

When i write about hosts file i mean my local computer, win7 hosts file.
Reply With Quote
  #4  
Old 11th October 2010, 10:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,732 Times in 2,569 Posts
Default

What's the output of
Code:
ifconfig
, and what's in your Vhosts_ispconfig.conf?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
Perilla (11th October 2010)
  #5  
Old 11th October 2010, 10:27
Perilla Perilla is offline
Junior Member
 
Join Date: Oct 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
ifconfig
, and what's in your Vhosts_ispconfig.conf?
Code:
eth0      Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.66  Bcast:69.31.91.79  Mask:255.255.255.240
          inet6 addr: fe80::216:76ff:febe:7418/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22384639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36188194 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1733082184 (1.6 GiB)  TX bytes:50172824592 (46.7 GiB)

eth0:1    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.67  Bcast:69.31.91.71  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:2    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.68  Bcast:69.31.91.71  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:3    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.69  Bcast:69.31.91.71  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:4    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.70  Bcast:69.31.91.71  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:5    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.91.71  Bcast:69.31.91.71  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:6    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.84.89  Bcast:69.31.84.95  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:7    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.84.90  Bcast:69.31.84.95  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:8    Link encap:Ethernet  HWaddr 00:16:76:BE:74:18
          inet addr:69.31.84.91  Bcast:69.31.84.95  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:41560 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41560 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17907578 (17.0 MiB)  TX bytes:17907578 (17.0 MiB)
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.84.89:80
<VirtualHost 69.31.84.89:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.91.66:80
<VirtualHost 69.31.91.66:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.91.67:80
<VirtualHost 69.31.91.67:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.91.68:80
<VirtualHost 69.31.91.68:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.91.70:80
<VirtualHost 69.31.91.70:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost 69.31.91.71:80
<VirtualHost 69.31.91.71:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.domain1.com:80
######################################
#
#
<VirtualHost 69.31.91.70:80>
SuexecUserGroup web1_domain1.com web1
ServerName www.domain1.com:80
ServerAdmin webmaster@domain1.com
DocumentRoot /var/www/web1/web
ServerAlias officeshare.ru
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias  /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
#
######################################
# Vhost: www.domain2.com:80
######################################
etc. other domains on same template.

Last edited by Perilla; 11th October 2010 at 10:33.
Reply With Quote
  #6  
Old 12th October 2010, 15:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,732 Times in 2,569 Posts
Default

Looks ok. What's the Listen directive in your Apache configuration?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
Perilla (12th October 2010)
  #7  
Old 4th November 2010, 10:20
Perilla Perilla is offline
Junior Member
 
Join Date: Oct 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

All about bind.
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
CentOS DomU on Ubuntu 8.04 LTS Dom0 atjensen11 HOWTO-Related Questions 17 24th February 2009 19:00
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 04:40
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 15:19.


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