Index of /

Discussion in 'General' started by browngb, Feb 19, 2006.

  1. browngb

    browngb New Member

    I'm confused on how this works I guess. I've ran the Ubuntu Perfect Setup and everything appears to be working except that when I go to either of the domains I've configured, I get the "Index of /" screen. I am expecting that it would put me in the web1/ or web2/ folder. Is there something I did wrong? If you're curious to see, the two sites are www.brojoh.com and www.preventenance.com

    I would appreciate it if someone can tell me what I did wrong. Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is your server in a NAT enviroment (behind a router)?
    Did you get any errors during installation or are there any errors in /home/admispconfig/ispconfig/ispconfig.log ?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Also have a look at Vhosts_ispconfig.conf. Is it empty?
     
  4. browngb

    browngb New Member

    My Vhosts_ispconfig.conf is not empty. Here is what it says:

    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.0.100:80
    <VirtualHost 192.168.0.100:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.brojoh.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.100:80>
    ServerName www.brojoh.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias brojoh.com brojoh.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/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web1/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
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/var/www/web1/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/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.preventenance.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.100:80>
    ServerName www.preventenance.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web2/web
    ServerAlias preventenance.com preventenance.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/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web2/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/web2/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/web2/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    
    One thing I notice is that it shows 80 for the port, but my ISP blocks port 80, so i redirect to 8080. During the installation when you say to add "Listen 443", I also added "Listen 8080" hoping that would make it all work. How do I configure it to listen on port 8080?

    P.S. There were no errors in the log, just two warnings that said:

    Code:
    19.02.2006 - 03:01:16 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12001 web1_anonftp &> /dev/null
    19.02.2006 - 03:01:16 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web1/ftp -g web1_anonftp -M -s /bin/false -u 12001 web1_anonftp &> /dev/null
    I really appreciate your guy's help.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    If you want to use port 8080, you must change the code in the function make_vhost() (beginning on line 1188) in /root/ispconfig/scripts/lib/config.lib.php.
     
  6. browngb

    browngb New Member

    Ok, I edited the config file and deleted the sites and users in ISP Manger, but whenever I try to add them back, it says that the names are already in use. How do I clear out the old ones?
     
  7. browngb

    browngb New Member

    Nevermind, it somehow went away, and I was able to add both sites. Preventenance.com works fine, but brojoh.com now gives me the Shared IP page.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    You must check the recycle bin.

    If you created www.brojoh.com, then you must use www.brojoh.com in your browser. If you add the Co-Domain brojoh.com (without host), you can also use brojoh.com in your browser.
     

Share This Page