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 9th January 2007, 09:13
braakiss braakiss is offline
Junior Member
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default I cannot resolve www.example.com on the local machine

Hi everyone,
Mi problem is that I cannot resolve www.example.com in my local machine where I have installed ispconfig ( It is a vmware virtual machine )

I have a domain and a subdomain:

www.example.com
sub1.example.com

When I put in firefox ( in the virtual machine where I have ispconfig ) either www.example.com or sub1.example.com it shows "Test for the Apache web server" instead of "welcome to www.example.com" or "welcome to sub1.example.com". If I do that in another machine it works properly, it shows "welcome to..."

What is the problem?

Thanks in advance

Fernando M.
Reply With Quote
Sponsored Links
  #2  
Old 9th January 2007, 10:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Please check with e.g. ping that the domain resolves to the same IP on both machines.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th January 2007, 11:18
braakiss braakiss is offline
Junior Member
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till,
If I do "ping www.example.com" on both machines it resolves 192.168.3.85, the same IP.

any idea?

Last edited by braakiss; 9th January 2007 at 20:52.
Reply With Quote
  #4  
Old 10th January 2007, 16:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in /etc/hosts? What's the output of
Code:
ifconfig
? What's in 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
  #5  
Old 11th January 2007, 09:03
braakiss braakiss is offline
Junior Member
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Falko,

/etc/hosts

Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost
192.168.3.85 sub1.example.com sub1
192.168.3.85 sub2.example.com sub2
192.168.3.86 mail.example.com mail
192.168.3.85 www.example.com www
::1 sub1.example.com sub1 www.example.com www localhost.localdomain localhost
ifconfig output:

Quote:
eth0 Link encap:Ethernet HWaddr 00:0C:29B:4C:6F
inet addr:192.168.3.85 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fedb:4c6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:384 errors:0 dropped:0 overruns:0 frame:0
TX packets:235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:352864 (344.5 KiB) TX bytes:20724 (20.2 KiB)
Base address:0x10d0 Memory:ec820000-ec840000

eth0:0 Link encap:Ethernet HWaddr 00:0C:29B:4C:6F
inet addr:192.168.3.86 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x10d0 Memory:ec820000-ec840000

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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:660 (660.0 b) TX bytes:660 (660.0 b)
Vhosts_ispconfig.conf

Quote:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.3.85:80
<VirtualHost 192.168.3.85:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.example.com:80
######################################
#
#
<VirtualHost 192.168.3.85:80>
ServerName www.example.com:80
ServerAdmin webmaster@example.com
DocumentRoot /var/www/web2/web
ServerAlias example.com
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
ErrorLog /var/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web2/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/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^/(.*)$ http://www.example.com/subdominio/$1 [R]
</VirtualHost>
#
#
#
######################################
# Vhost: sub1.example.com:80
######################################
#
#
<VirtualHost 192.168.3.85:80>
ServerName sub1.example.com:80
ServerAdmin webmaster@example.com
DocumentRoot /var/www/web3/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
ErrorLog /var/www/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web3/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/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: sub2.example.com:80
######################################
#
#
<VirtualHost 192.168.3.85:80>
ServerName sub2.example.com:80
ServerAdmin webmaster@example.com
DocumentRoot /var/www/web5/web
ServerAlias sub2.example.com
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
ErrorLog /var/www/web5/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web5/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web5/phptmp/
php_admin_value session.save_path /var/www/web5/phptmp/
Alias /error/ "/var/www/web5/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/web5/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web5/user/$1/web/$3
</VirtualHost>
#
#
#
thanks again
Reply With Quote
  #6  
Old 12th January 2007, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Can you change

Code:
::1 sub1.example.com sub1 www.example.com www localhost.localdomain localhost
to
Code:
::1 localhost.localdomain localhost
in /etc/hosts?
__________________
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
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
Occasional high load on the server. kanour General 5 21st November 2006 11:27
Virtual Users And Domains With Postfix, Courier And MySQL wmrwl HOWTO-Related Questions 73 6th October 2006 23:06
Not able to send/Receive mail in local network mskumar_y2k Installation/Configuration 3 12th April 2006 23:37
Postfix/Courier/MySQL: Local Delivery Fails DMXRoid Server Operation 2 10th April 2006 19:56
how stop spammers from reading local accounts? rdells Server Operation 5 19th March 2006 00:53


All times are GMT +2. The time now is 17:40.


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