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.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 21st April 2008, 02:01
mike_phi mike_phi is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig virtual web pages not working

Hi there all,

I just successfully completed a second installation of ISP config and come up with the same problem.

I performed the perfect installation for fedora core 5.

everything works perfectly up untill I try to access the url to any of the sites I create.

e.g.

www.mytestsite.com

results in the error

Firefox can't find the server at www.subscribe04.com

my setup involves a pc running fedora 5 and a router connected to the net
here is my Vhosts_ispconfig.conf
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.183:80
<VirtualHost 192.168.0.183:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.subscribe04.com:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.subscribe04.com:80
ServerAdmin webmaster@subscribe04.com
DocumentRoot /var/www/web20/web
ServerAlias subscribe04.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/web20/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/web20/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/web20/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web20/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.subscribe.com:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.subscribe.com:80
ServerAdmin webmaster@subscribe.com
DocumentRoot /var/www/web19/web
ServerAlias subscribe.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/web19/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/web19/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/web19/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web19/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.slash.bot:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.slash.bot:80
ServerAdmin webmaster@slash.bot
DocumentRoot /var/www/web17/web
ServerAlias 127.0.0.1.www.slash.bot
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/web17/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/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/
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
</VirtualHost>
#
#
#
######################################
# Vhost: www.micShool.com:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.micShool.com:80
ServerAdmin webmaster@micShool.com
DocumentRoot /var/www/web14/web
ServerAlias micShool.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
Alias  /cgi-bin/ /var/www/web14/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web14/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/web14/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web14/phptmp/
php_admin_value session.save_path /var/www/web14/phptmp/
Alias /error/ "/var/www/web14/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/web14/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web14/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.anneWork.com:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.anneWork.com:80
ServerAdmin webmaster@anneWork.com
DocumentRoot /var/www/web12/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/web12/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/web12/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web12/phptmp/
php_admin_value session.save_path /var/www/web12/phptmp/
Alias /error/ "/var/www/web12/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/web12/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web12/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.anneschool.com:80
######################################
#
#
<VirtualHost 192.168.0.183:80>
ServerName www.anneschool.com:80
ServerAdmin webmaster@anneschool.com
DocumentRoot /var/www/web13/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/web13/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/web13/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web13/phptmp/
php_admin_value session.save_path /var/www/web13/phptmp/
Alias /error/ "/var/www/web13/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
ErrorDocumen
#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<Directory /var/www/sharedip>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig

<Directory /var/www/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

<Directory /var/www/*/user/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

<Directory /var/www/*/cgi-bin>
    Options ExecCGI -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
here is the output of netstat -tap
Code:
netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 *:52899                     *:*                         LISTEN      1799/rpc.statd
tcp        0      0 *:mysql                     *:*                         LISTEN      2174/mysqld
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1780/portmap
tcp        0      0 localhost.localdomain:50000 *:*                         LISTEN      2013/hpiod
tcp        0      0 *:hosts2-ns                 *:*                         LISTEN      2614/ispconfig_http
tcp        0      0 localhost.localdomain:50002 *:*                         LISTEN      2018/python
tcp        0      0 192.168.0.183:domain        *:*                         LISTEN      2750/named
tcp        0      0 localhost.localdomai:domain *:*                         LISTEN      2750/named
tcp        0      0 localhost.localdomain:ipp   *:*                         LISTEN      5471/cupsd
tcp        0      0 *:smtp                      *:*                         LISTEN      4592/master
tcp        0      0 localhost.localdomain:rndc  *:*                         LISTEN      2750/named
tcp        0      0 localhost.localdomain:50000 localhost.localdomain:58946 ESTABLISHED 2013/hpiod
tcp        0      0 localhost.localdomain:58946 localhost.localdomain:50000 ESTABLISHED 2018/python
tcp        0      0 *:imaps                     *:*                         LISTEN      2207/dovecot
tcp        0      0 *:pop3s                     *:*                         LISTEN      2207/dovecot
tcp        0      0 *:pop3                      *:*                         LISTEN      2207/dovecot
tcp        0      0 *:imap                      *:*                         LISTEN      2207/dovecot
tcp        0      0 *:http                      *:*                         LISTEN      4910/httpd
tcp        0      0 *:ftp                       *:*                         LISTEN      4487/proftpd: (acce
tcp        0      0 *:ssh                       *:*                         LISTEN      2065/sshd
tcp        0      0 localhost.localhost:rndc    *:*                         LISTEN      2750/named
tcp        0      0 *:https                     *:*                         LISTEN      4910/httpd
here is the output of ifconfig
Code:
ifconfig
eth1      Link encap:Ethernet  HWaddr 00:60:1D:F2:85:D7
          inet addr:192.168.0.183  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::260:1dff:fef2:85d7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4742 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5077 errors:29 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2709449 (2.5 MiB)  TX bytes:1111220 (1.0 MiB)
          Interrupt:3 Base address:0x100

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:3450 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3450 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3838786 (3.6 MiB)  TX bytes:3838786 (3.6 MiB)
Reply With Quote
Sponsored Links
 

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
cannot access ispconfig web interface spekkio Installation/Configuration 8 16th December 2007 01:15
ISPCONFIG and Virtual Users And Domains With Postfix, Courier And MySQL QuikSoft Installation/Configuration 5 6th December 2006 18:01
bug in virtual host ispconfig adrenalinic Tips/Tricks/Mods 1 13th August 2006 13:37
Web pages just stopped working ! skeeta Installation/Configuration 1 28th August 2005 19:30
Web pages just stopped working ! skeeta Installation/Configuration 1 28th August 2005 19:17


All times are GMT +2. The time now is 08:33.


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