problem creating anew site.

Discussion in 'General' started by resnostyle, Sep 13, 2006.

  1. resnostyle

    resnostyle New Member

    i have created a new site and when i enter the my address i get a page that says use the address and not the ip. i am not sure what i am doing wrong....
     
    Last edited: Sep 15, 2006
  2. till

    till Super Moderator

    You must set the correct IP in the website settings, when you are behind a router, the correct IP is your internal IP.
     
  3. resnostyle

    resnostyle New Member

    what is this usually under? i see several places where ip address can go.

    aslo i am not behind a router, when i run ifconfig i get to address one is inet addr and the other is bcast. should i use the bcast?
     
  4. falko

    falko Super Moderator

    What's the output of
    Code:
    ifconfig
    ? What's in your Vhosts_ispconfig.conf?
     
  5. resnostyle

    resnostyle New Member

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:E0:29:1B:4A:16  
              inet addr:204.94.101.XXX  Bcast:204.94.101.XXX  Mask:255.255.255.128
              inet6 addr: fe80::2e0:29ff:fe1b:4a16/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:531910 errors:0 dropped:0 overruns:0 frame:0
              TX packets:21171 errors:0 dropped:0 overruns:0 carrier:0
              collisions:4349 txqueuelen:1000 
              RX bytes:117982094 (112.5 MiB)  TX bytes:14553000 (13.8 MiB)
              Interrupt:9 Base address:0x1000 
    
    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:1544 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1544 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:93956 (91.7 KiB)  TX bytes:93956 (91.7 KiB)
    
    whats the directory for the vhosts folder?
     
  6. falko

    falko Super Moderator

    It depends on your distribution. Normally it's /etc/apache2/vhosts or /etc/httpd/vhosts or something like that. You can search for it:
    Code:
    updatedb
    locate Vhosts_ispconfig.conf
     
  7. resnostyle

    resnostyle New Member

    when i issued the command i got
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 204.94.101.1xx:80
    <VirtualHost 204.94.101.1xx:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    NameVirtualHost 204.94.101.1xx:80
    <VirtualHost 204.94.101.1xx:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.visualadditions.co.nr/:80
    ######################################
    #
    #
    <VirtualHost 204.94.101.1xx:80>
    ServerName www.visualadditions.co.nr/:80
    ServerAdmin webmaster@visualadditions.co.nr/
    DocumentRoot /var/www/web18/web
    ServerAlias visualadditions.co.nr/
    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/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
    <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/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/
    
    
    all the x's are the same address...
     
  8. till

    till Super Moderator

    Please remove the / at the end of the domain name in the ISPConfig website settings. You must enter "visualadditions.co.nr" in the domain field and not "visualadditions.co.nr/".
     
  9. resnostyle

    resnostyle New Member

    made changes and still unable to access page...
    *I AM NOW BEHIND A ROUTER! * is this configed right?
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.x:80
    <VirtualHost 192.168.1.x:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.visualadditions.co.nr:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.x:80>
    ServerName www.visualadditions.co.nr:80
    ServerAdmin webmaster@visualadditions.co.nr
    DocumentRoot /var/www/web18/web
    ServerAlias visualadditions.co.nr
    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/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
    <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/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/
    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
    
     
  10. till

    till Super Moderator

    This looks fine.

    And you are sure that the domain www.visualadditions.co.nr is pointing to your routers external IP address and you forwarded port 80 and 443 from the router to the IP used in the vhost file. Have you tested this from outside your local network?
     
  11. resnostyle

    resnostyle New Member

    for some reason i cant test it from my network... if you would like i can give you client access so you can take a look. im at the point of giving up and installing something simpler.
     
  12. till

    till Super Moderator

    The current problem seems to be with your router, so another software wont help you.

    Is the external IP of your router 204.94.101.45 ?
     
  13. resnostyle

    resnostyle New Member

    yes it its
     
  14. resnostyle

    resnostyle New Member

    i have reconfigured my router and it now allows access... but i still get the shared ip message.
     
  15. till

    till Super Moderator

  16. resnostyle

    resnostyle New Member

    ok give me asec.. and i will turn the server on..
     
  17. till

    till Super Moderator

    Ok, now I get the shared IP page too.

    Please double check that you redirected port 80 on your router to the exact same internal IP address that is shown in the settings of the website visualadditions.co.nr in ISPConfig.
     
  18. resnostyle

    resnostyle New Member

    i think i will just install ubuntu lamp server... because i can not figure this out... thats why the server didnt respond before, i was starting the installtion on another drive. do you want to check my files for me? i will give you login...
     
  19. falko

    falko Super Moderator

    Please make sure that the IP addresses you see in Vhosts_ispconfig.conf are the ones you see in your
    Code:
    ifconfig
    output!
     
  20. resnostyle

    resnostyle New Member

    yep..
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.x:80
    <VirtualHost 192.168.1.x:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.visualadditions.co.nr:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.x:80>
    ServerName www.visualadditions.co.nr:80
    ServerAdmin webmaster@visualadditions.co.nr
    DocumentRoot /var/www/web18/web
    ServerAlias visualadditions.co.nr
    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/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
    <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/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/
    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/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
    RewriteEngine on
    RewriteCond %{HTTP_HOST}   ^visualadditions\.co\.nr [NC]
    RewriteRule   ^/(.*)$  http://www.visualadditions.co.nr/va.selfip.com/$1  [R]
    </VirtualHost>
    #
    #
    #
    
    see anything wrong?
     

Share This Page