Setting up a server on a home network

Discussion in 'Installation/Configuration' started by rodobrist, Oct 1, 2010.

  1. rodobrist

    rodobrist New Member

    hi all,
    i have opensuse 11.3 perfect server setup
    before i go on the web, i was hoping to make a simple website run from my home network.
    eg open up IE type 192.168.10.58

    my server's IP is 192.168.10.57
    i have experimented with allot of combinations but im really unsure how to do this.

    thank you in advance
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. rodobrist

    rodobrist New Member

    I have Dynamic DNS pointing to my router which then points to my server and when i go to my roderick.dyndns.info i get:

    This IP address is shared. For access to the web site which you look for, enter its address instead of its IP.

    For questions or problems please contact the server administrator.



    My Server has an IP
    my Website has an IP and the same webname as roderick.dyndns.info

    i dont really understand what goes where etc
     
  4. rodobrist

    rodobrist New Member

    might i add my needs have slightly changed
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Can you post the output of
    Code:
    ifconfig
    ?
    What's in the vhost configuration of roderick.dyndns.info?
     
  6. rodobrist

    rodobrist New Member

    Rod1:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 6C:F0:49:AD:2A:DB
    inet addr :192.168.1.57 Bcast 192.168.1.255 Mask 255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC:1
    RX packets:470257 errors:0 dropped:0 overruns:0 frame:0
    TX packets:30815 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:29813797 (28.4Mb) TX bytes:4389956 (4.1Mb)
    Interrupt: 28 base address:0xe000

    eth0 Link encap:Local Loopback
    inet addr :127.0.0.1 Mask 255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 METRIC:1
    RX packets:3187 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3187 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:228922(223.5Kb) TX bytes:228922(223.5Kb)

    I searched my server using the find function
    ie
    find vhost.conf
    and there were no results

    im not sure what vhost config is ... but if it is hostnamee, domain and ip adress then it is
    www
    roderick.dyndns.info
    192.168.1.57
    (quoting the most recent set of values i have put in ISP config)

    I hope that was the right information
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Try
    Code:
    updatedb
    locate roderick.dyndns.info
     
  8. rodobrist

    rodobrist New Member

    update db
    resulted in a small break and then the command prompt returned

    locate roderick.dyndns.info resulted in
    /srv/www/www.roderick.dyndns.info
    /var/lib/named/pri.roderick.dyndns.info
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Hm... Isn't there a vhost configuration file somewhere in /etc/apache2 or its subdirectories?
     
  10. rodobrist

    rodobrist New Member

    I searched my server and found Vhosts_ISpconfig.conf

    there were two hosts when i thought there should only be one... im not sure if this is normal though.

    im not even sure if this is the file you are looking for



    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 121.213.170.153:80
    <VirtualHost 121.213.170.153:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    NameVirtualHost 192.168.1.57:80
    <VirtualHost 192.168.1.57:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    NameVirtualHost 192.168.1.57:80
    <VirtualHost 192.168.1.57:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: roderick.dyndns.info:80
    ######################################
    #
    #
    <VirtualHost 121.213.170.153:80>
    ServerName roderick.dyndns.info:80
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web6/web
    ServerAlias trybeforeyoubuybaby.com.au
    DirectoryIndex index.html
    Alias /cgi-bin/ /srv/www/web6/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /srv/www/web6/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode On
    php_admin_value open_basedir /srv/www/web6/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /srv/www/web6/phptmp/
    php_admin_value session.save_path /srv/www/web6/phptmp/
    <IfModule mod_ruby.c>
    <Directory /srv/www/web6/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /srv/www/web6/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    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/ "/srv/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/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    <IfModule mod_dav.c>
    Alias /webdav /srv/www/web6/web
    <Location /webdav>
    DAV On
    AuthType Basic
    AuthName "webdav"
    AuthUserFile /srv/www/web6/passwd.dav
    Require valid-user
    </Location>
    </IfModule>
    </VirtualHost>
    #
    #
    #
     
  11. falko

    falko Super Moderator ISPConfig Developer

    You're using the wrong IP address for your vhosts (121.213.170.153). You must use an IP address from the ifconfig output (192.168.1.57).
     
  12. rodobrist

    rodobrist New Member

    thank you

    it worked like a charm
     

Share This Page