site problem

Discussion in 'Installation/Configuration' started by bigredcherokee, Feb 12, 2008.

  1. bigredcherokee

    bigredcherokee New Member

    We have ISPConfig running on 7.10 ubuntu server. We create a client and then a site for that client but when we go to the IP of the server we get that its a shared IP and that we should contact our admin.
     
  2. Stanev

    Stanev New Member

    You should use domain name of the page not IP
     
  3. TJ Willy

    TJ Willy New Member

    (I am also working on this server with BigRed)

    Thanks for the reply. Here is a little more background.

    Basically we are attempting to use Apache mod_proxy on another server (SBS 03 build with Apache 2.0.54 and full WAMP install) to pass along a URL request to a secondary webserver (Ubuntu 7.10 with ISPConfig). The SBS server is needed/used for other office functions and the Linux box handles various other tasks in addition to hosting. Eventually the SBS VHosts will all be migrated but that is a ways down the road.

    Ok... so, for now.

    We have the following code in the httpd.conf file on SBS which is the port 80 server:

    Code:
    <virtualhost *>
    
    ServerAdmin [email protected]
    #DocumentRoot "c:/www/xl1200n/"
    ServerName www.xl1200n.com
    ServerAlias xl1200n.com
    #ErrorLog logs/xl1200n.com-error_log
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass / http://192.168.1.169:80
    ProxyPassReverse / http://192.168.1.169:80
    </virtualhost>
    
    I am starting to believe it is either in the ProxyPass and ProxyPassReverse lines or the way we have the site setup in ISPConfig.

    It would seem that the ProxyPass and ProxyPassReverse is too generic for the inside server to route, but nothing I have tried works. From qualified path to fully qualified domain/url.

    If I change
    Code:
    ProxyPass / http://blade.group54.com:80/www.xl1200n.com
    ProxyPassReverse / http://blade.group54.com:80/www.xl1200n.com
    
    I get a 404:

    Code:
    Not Found
    
    The requested URL /www.xl1200n.com was not found on this server.
    Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 mod_ssl/2.2.4 OpenSSL/0.9.8e Server at blade.group54.com Port 80
    
    The (Ubuntu) return tells me that the inside server (blade) is returning the 404.

    Any further ideas? Neither of us are total noobs but neither of us have setup proxys before. ANY help would be appreciated.

    Cheers.
     
    Last edited: Feb 14, 2008
  4. falko

    falko Super Moderator ISPConfig Developer

    What's in Vhosts_ispconfig.conf, and what's the output of
    Code:
    ifconfig
    ?
     
  5. TJ Willy

    TJ Willy New Member

    In the Vhosts_ispconfig.conf is:

    Code:
    NameVirtualHost 192.168.1.169:80
    <VirtualHost 192.168.1.169:80>
      ServerName localhost
      ServerAdmin [email protected]
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    
    #Vhost: www.xl1200n.com:80
    
    <VirtualHost 192.168.1.169:80>
    ServerName www.xl1200n.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web6/web
    ServerAlias www.xl1200n.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/web6/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web6/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/web6/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web6/phptmp/
    php_admin_value session.save_path /var/www/web6/phptmp/
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /errer/ "/var/www/web6/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/overload.html
    AliasMatch ^/~([^/]+) (/(.*))? /var/www/web6/user/$1/web/$3
    AliasMatch ^/users/ ([^/]+) (/(.*))? /var/www/web6/usr/$1/web/$3
    </VirtualHost>
    
    And the output for ifconfig is:

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:0B:AB:xx:xx:xx
              inet addr:192.168.1.169  Bcase:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80:20b:abff:fe03:3bd2/64  Scope:Link
              UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1
              RX packets:69741 errors:0 dropped:0 overruns:0 frame:0
              TX packets:24327 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
    
    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:5762 errors:0 dropped: overruns:0 frame:0
              TX packets:5762 errors:0 dropped: overruns:0 frame:0
              collissions:0 txqueuelen:0
              RX bytes:1849780 (1.7 MB)  TX bytes:1849780  (1.7 MB)
    
    Thanks for your help looking into this!!!!
     
  6. TJ Willy

    TJ Willy New Member

    Quick update:

    We managed to get everything working BUT I still think think something is off. In order to get things to work I changed the httpd.conf file on the port 80 box to reflect the following changes:

    Code:
    ProxyPass / http://192.168.1.169/web6/web/
    ProxyPassReverse / http://192.168.1.169/web6/web/
    
    AND we had to MANUALLY go into Vhosts_ispconfig.conf file and remove all references to the IP address in the virtual hosts tags to
    Code:
    *
    And we learned anytime a news site is created, all the
    Code:
    *
    
    revert back to IPs and they must be changed or we get the "Shared IP Address error from ISPConfig.

    SO, that tells us we still have something awry in the setup.

    Perhaps y'all can shed some light on this or possible ways to to troubleshoot the problem.

    THANKS!
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you sure that you had selected the correct IP address for the sites? If your server is behind a router, you will have to use the internal IP address.
     
  8. TJ Willy

    TJ Willy New Member

    Yes. I am sure. Up in post 5 is our Vhosts_ispconfig.comf code. You can see in there is a 192.168.. ip structure.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    I think you should try this:
    Code:
    ProxyPass / http://www.xl1200n.com:80
    ProxyPassReverse / http://www.xl1200n.com:80
    And in /etc/hosts, add this line:
    Code:
    192.168.1.169 www.xl1200n.com
    so that the system forwards the requests to the ISPConfig server instead of to itself.
     

Share This Page