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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th October 2009, 19:07
thanhdiepts thanhdiepts is offline
Junior Member
 
Join Date: Oct 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Shared IP problem again!

Hi all,

I setup CentOs with latest ISPConfig 2, but after I created some websites, Shared IP page appeared when I access these site. Here is my ifconfig and Vhosts_ispconfig result:

Quote:
eth0 Link encap:Ethernet HWaddr 00:11:25:1E:03:74
inet addr:203.113.173.38 Bcast:203.113.173.63 Mask:255.255.255.192
inet6 addr: fe80::211:25ff:fe1e:374/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15686 errors:0 dropped:0 overruns:0 frame:0
TX packets:14723 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2216053 (2.1 MiB) TX bytes:6141353 (5.8 MiB)
Interrupt:193 Memory:fe010000-fe020000

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:481 errors:0 dropped:0 overruns:0 frame:0
TX packets:481 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41342 (40.3 KiB) TX bytes:41342 (40.3 KiB)
Quote:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 203.113.173.38:80
<VirtualHost 203.113.173.38: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.itdls1.no-ip.info:80
######################################
#
#
<VirtualHost 203.113.173.38:80>
ServerName www.itdls1.no-ip.info:80
ServerAdmin webmaster@itdls1.no-ip.info
DocumentRoot /var/www/web18/web
ServerAlias itdls1.no-ip.info
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/web18/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web18/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web18/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web18/phptmp/
php_admin_value session.save_path /var/www/web18/phptmp/
<IfModule mod_ruby.c>
<Directory /var/www/web18/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
<IfModule mod_python.c>
<Directory /var/www/web18/web>
#Options +Indexes +FollowSymLinks +MultiViews
#AllowOverride Indexes AuthConfig Limit FileInfo
#Order allow,deny
#allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /stats "/var/www/web18/web/webalizer"
Alias /error/ "/var/www/web18/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/web18/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web18/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_dav.c>
Alias /webdav /var/www/web18/web
<Location /webdav>
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /var/www/web18/passwd.dav
Require valid-user
</Location>
</IfModule>
</VirtualHost>
#
#
#
######################################
# Vhost: www.itdls.no-ip.info:80
######################################
#
#
<VirtualHost 203.113.173.38:80>
ServerName www.itdls.no-ip.info:80
ServerAdmin webmaster@itdls.no-ip.info
DocumentRoot /var/www/web17/web
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/web17/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web17/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web17/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web17/phptmp/
php_admin_value session.save_path /var/www/web17/phptmp/
<IfModule mod_ruby.c>
<Directory /var/www/web17/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
<IfModule mod_python.c>
<Directory /var/www/web17/web>
#Options +Indexes +FollowSymLinks +MultiViews
#AllowOverride Indexes AuthConfig Limit FileInfo
#Order allow,deny
#allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /stats "/var/www/web17/web/webalizer"
Alias /error/ "/var/www/web17/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/web17/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web17/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_dav.c>
Alias /webdav /var/www/web17/web
<Location /webdav>
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /var/www/web17/passwd.dav
Require valid-user
</Location>
</IfModule>
</VirtualHost>
#
#
#
wait for your help! thanks,
Reply With Quote
Sponsored Links
  #2  
Old 7th October 2009, 13:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Code:
mh1:~# dig itdls1.no-ip.info

; <<>> DiG 9.3.4 <<>> itdls1.no-ip.info
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28539
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;itdls1.no-ip.info.             IN      A

;; ANSWER SECTION:
itdls1.no-ip.info.      360     IN      A       69.65.19.125

;; Query time: 176 msec
;; SERVER: 213.133.98.98#53(213.133.98.98)
;; WHEN: Wed Oct  7 13:47:30 2009
;; MSG SIZE  rcvd: 51

mh1:~#
itdls1.no-ip.info is pointing to a wrong IP.
__________________
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:
thanhdiepts (7th October 2009)
  #3  
Old 7th October 2009, 18:26
thanhdiepts thanhdiepts is offline
Junior Member
 
Join Date: Oct 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank falko, it works again!
Reply With Quote
  #4  
Old 1st March 2010, 22:16
wanderer wanderer is offline
Junior Member
 
Join Date: Oct 2009
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I have a problem related to shared IP. I set up ispconfig 2 on Ubuntu 8 all services work fine from lan and from outside, with one exception. Called http server ip in the LAN message is "the shared". Called from outside the LAN http works perfectly. I appreciate any help given. Thanks
Reply With Quote
  #5  
Old 2nd March 2010, 11:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,333 Times in 4,184 Posts
Default

Make sure that you have selected the internal IP address and not external IP in the website settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 2nd March 2010, 13:05
wanderer wanderer is offline
Junior Member
 
Join Date: Oct 2009
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I check now. It's 192.168.... ip set up in web settings.
Reply With Quote
  #7  
Old 3rd March 2010, 14:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by wanderer View Post
I have a problem related to shared IP. I set up ispconfig 2 on Ubuntu 8 all services work fine from lan and from outside, with one exception. Called http server ip in the LAN message is "the shared". Called from outside the LAN http works perfectly. I appreciate any help given. Thanks
You must use the correct domain or hostname to access a site - you cannot use the IP address because ISPConfig configures name-based vhosts.
__________________
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
  #8  
Old 4th March 2010, 11:48
wanderer wanderer is offline
Junior Member
 
Join Date: Oct 2009
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Sorry for the error, I tried with the correct domain and give the same result.
Reply With Quote
  #9  
Old 5th March 2010, 13:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in Vhosts_ispconfig.conf, and what is the output of
Code:
ifconfig
?
__________________
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:
wanderer (15th March 2010)
  #10  
Old 15th March 2010, 15:51
wanderer wanderer is offline
Junior Member
 
Join Date: Oct 2009
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Thanks FALKO but I changed my mind about using ISPConfig and I want to set up services without it, I posted on another post problems faced to the mail service.
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 00:16.


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