VirtualHosts

Discussion in 'General' started by marra87, Sep 7, 2006.

  1. marra87

    marra87 New Member

    Hi!

    I'm new to ISPConfig.
    But it is up running.
    I have pointed my DNS to my server, but the domain just enter the Fedora Core Test Page.
    As you can see I have Fedora core 4 installed.
    Does anyone have an idea of what to do?
     
  2. IntnsRed

    IntnsRed ISPConfig Developer ISPConfig Developer

    Check out the ISPConfig docs.

    Assuming you did the "perfect install" as recommended by the docs, the next thing is to create a domain with ISPConfig. That is outlined pretty well in the docs.
    ________
    ARIZONA DISPENSARIES
     
    Last edited: Mar 4, 2011
  3. marra87

    marra87 New Member

    hum...

    I have set up in the DNS (ns1.gratisdns.dk) A record to point to my IP.
    I have also made a site in ISPConfig:
    [​IMG]

    But I still get this screen:
    [​IMG]

    I have even uploaded another index file.
    So I just don't know what to do.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Is your server in a NAT enviroment behind a router?
     
  5. martinmuc

    martinmuc New Member

    Hi,

    Check if your httpd.conf has these entrys at the end of the file.
    The last line is the most important in this case.


    Martin



    ###############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 /*/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 /*/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 /*/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/apache2/vhosts/Vhosts_ispconfig.conf
     
  6. marra87

    marra87 New Member

    No, I have put it in the DMZ.
    And, yes those lines are in the config file.
    It's strange. Because the information in the vhostfiles is correct, and it does include them, so I really don't know what to do.

    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 85.165.147.***:80
    <VirtualHost 85.165.147.***:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.linnogidashow.com:80
    ######################################
    #
    #
    <VirtualHost 85.165.147.***:80>
    ServerName www.linnogidashow.com:80
    ServerAdmin webmaster@linnogidashow.com
    DocumentRoot /var/www/web15/web
    ServerAlias linnogidashow.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
    ScriptAlias  /cgi-bin/ /var/www/web15/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web15/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/web15/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web15/phptmp/
    php_admin_value session.save_path /var/www/web15/phptmp/
    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 /error/ "/var/www/web15/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/web15/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.16pluss.com:80
    ######################################
    #
    #
    <VirtualHost 85.165.147.***:80>
    ServerName www.16pluss.com:80
    ServerAdmin webmaster@16pluss.com
    DocumentRoot /var/www/web13/web
    ServerAlias 16pluss.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
    ScriptAlias  /cgi-bin/ /var/www/web13/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    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/
    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 /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
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web13/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web13/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.2k3.org:80
    ######################################
    #
    #
    <VirtualHost 85.165.147.***:80>
    ServerName www.2k3.org:80
    ServerAdmin webmaster@2k3.org
    DocumentRoot /var/www/web11/web
    ServerAlias 2k3.org
    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
    ScriptAlias  /cgi-bin/ /var/www/web11/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web11/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/web11/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web11/phptmp/
    php_admin_value session.save_path /var/www/web11/phptmp/
    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 /error/ "/var/www/web11/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/web11/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.imbecility.info:80
    ######################################
    #
    #
    <VirtualHost 85.165.147.***:80>
    ServerName www.imbecility.info:80
    ServerAdmin webmaster@imbecility.info
    DocumentRoot /var/www/web12/web
    ServerAlias imbecility.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
    ScriptAlias  /cgi-bin/ /var/www/web12/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    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/
    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 /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.wristband.no:80
    ######################################
    #
    #
    <VirtualHost 85.165.147.***:80>
    ServerName www.wristband.no:80
    ServerAdmin webmaster@wristband.no
    DocumentRoot /var/www/web17/web
    ServerAlias test.wristband.no
    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
    ScriptAlias  /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
    <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/
    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 /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>
    #
    #
    #
     
  7. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ifconfig
    ?
     
  8. marra87

    marra87 New Member

    Code:
    [root@x ~]# ifconfig
    eth1      Link encap:Ethernet  HWaddr 00:04:4B:80:80:03
              inet addr:192.168.1.9  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::204:4bff:fe80:8003/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:84161 errors:0 dropped:0 overruns:0 frame:0
              TX packets:73241 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:16815061 (16.0 MiB)  TX bytes:31120131 (29.6 MiB)
              Interrupt:12 Base address:0x2000
    
    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:4149 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4149 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:587725 (573.9 KiB)  TX bytes:587725 (573.9 KiB)
    The router is configured width DMZ to this computer.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    You're using the wrong IP address in ISPConfig. You're currently using 85.165.147.***, but you must use 192.168.1.9! Always use the IP address you see when you run
    Code:
    ifconfig
     
  10. wvsailor

    wvsailor New Member

    I'm having the same problem...

    Never mind, I figured out my mistake. It was in my ispconfig file. I had changed the ip address on my server and never made the corrections to the ispconfig file.... I'm doing my best Home Simpson impersonation.... (DOH!)

    I'm having the same problem and I think it's in my httpd.conf file.... as to where apache thinks the "root" directory should be.... but being a "noob" I'm not sure. I followed the "Perfect Setup" and I'm using FC5. Any help that anyone could offer is greatly appreciated!
     
    Last edited: Sep 12, 2006

Share This Page