Hello, First of all tanx for the great explanations made on this site, these are very usefull for a novice like me! I followed the Ubunti ISP guide step by step and my server is runnig nicely now 'and i learned a lot using Linux since this is my first linux distribution i work with (am used to mickeysoft) I encounter 1 (hopefully last!) problem: When I use either my IP addres or my domain name, the browser goes to the root of my webpage showing all files and folders. Olthough i'm trying to fix this for allready a week, I just cant find the solution, grrr Anybody here who can give me a hint or even a direct solution? Kind regards, Jelle Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a Server at www.woops.nl Port 80 Latest Ubuntu version
If I understand your question, you just want to stop everyone from seeing the directory structure when they access the main IP or doman name for the server. If this is the case, then all you need to do is put an index.html file in the main directory (/var/www/html on most installations). I use the proverbial "website under construction" page to accomplish this feat.
Well, not exactly. I created 3 websites using ISPConfig, www.woops.nl, etters.b0ne.com and bubbelen.darktech.org. ISPConfig created nicely the neccasary folders + structure. Only thing is, when i hit for instance: www.woops.nl i enter the main website root instead of: http://www.woops.nl/www.woops.nl/web/ What is going wrong? After i get this issue solved i will indeed place soms html in the root folder to prevent a first sight of the folder structure, but that's a later concern, first I'd like to get the domain names working...
What's in Vhosts_ispconfig.conf? Is Vhosts_ispconfig.conf included in your main Apache configuration?
Hi, Tanx for your replay ! How can i check if Vhosts is included in my main Apache config? (i did follow the tutorial step by step) ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # NameVirtualHost 62.195.107.203:80 <VirtualHost 62.195.107.203:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip </VirtualHost> # # ###################################### # Vhost: www.bubbelen.darktech.org:80 ###################################### # # <VirtualHost 62.195.107.203:80> ServerName www.bubbelen.darktech.org:80 ServerAdmin [email protected] DocumentRoot /var/www/web21/web ServerAlias bubbelen.darktech.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/web21/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /var/www/web21/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/web21/ php_admin_value file_uploads 1 php_admin_value upload_tmp_dir /var/www/web21/phptmp/ php_admin_value session.save_path /var/www/web21/phptmp/ 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/web21/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/web21/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web21/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.woops.nl:80 ###################################### # # <VirtualHost 62.195.107.203:80> ServerName www.woops.nl:80 ServerAdmin [email protected] DocumentRoot /var/www/web17/web ServerAlias woops.nl 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 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> # # # ###################################### # Vhost: www.etters.b0ne.com:80 ###################################### # # <VirtualHost 62.195.107.203:80> ServerName www.etters.b0ne.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web20/web ServerAlias etters.b0ne.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/web20/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /var/www/web20/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/web20/ php_admin_value file_uploads 1 php_admin_value upload_tmp_dir /var/www/web20/phptmp/ php_admin_value session.save_path /var/www/web20/phptmp/ Alias /error/ "/var/www/web20/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/web20/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web20/user/$1/web/$3 </VirtualHost> # # #
Check your main Apache configuration for something like Code: Include /path/to/Vhosts_ispconfig.conf What's the output of Code: ifconfig ?
I am having the same problem... Heres my Vhoists_ispconfig.conf Code: ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # # # ###################################### # Vhost: www.scratchco.com:80 ###################################### # # <VirtualHost 74.130.0.129:80> SuexecUserGroup web1_jacobhenry web1 ServerName www.scratchco.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web1/web ServerAlias scratchco.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/ <Location /cgi-bin> SetHandler cgi-script </Location> 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 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/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> # # # Here is part of my apache2.conf file. 'Include /etc/apache2/vhosts/Vhosts_ispconfig.conf' is at the bottom. Code: ###############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 /var/www/*/web> Options +Includes -Indexes -ExecCGI AllowOverride None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all <Files ~ "^\.ht"> Deny from all </Files> </Directory> <Directory /var/www/*/user/*/web> Options +Includes -Indexes -ExecCGI AllowOverride None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all <Files ~ "^\.ht"> Deny from all </Files> </Directory> <Directory /var/www/*/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> [B]Include /etc/apache2/vhosts/Vhosts_ispconfig.conf[/B] And finally this is what i get when i run ls -la /root/ispconfig Code: root@server1:/etc/apache2/vhosts# ls -la /root/ispconfig total 100 drwxr-xr-x 9 root root 4096 2006-07-07 15:58 . drwxr-xr-x 4 root root 4096 2006-07-07 16:15 .. -rwxr-xr-x 1 root root 33482 2006-07-07 15:36 cronolog -rwxr-xr-x 1 root root 9673 2006-07-07 15:36 cronosplit drwxr-xr-x 12 root root 4096 2006-07-07 14:05 httpd drwxr-xr-x 12 root root 4096 2006-07-07 15:36 isp -rw-r--r-- 1 root root 8 2006-07-07 15:58 .old_path_httpd_root drwxr-xr-x 6 root root 4096 2006-07-07 14:03 openssl drwxr-xr-x 6 root root 4096 2006-07-07 14:19 php drwxr-xr-x 4 root root 4096 2006-07-07 15:36 scripts drwxr-xr-x 4 root root 4096 2006-07-07 15:36 standard_cgis drwxr-xr-x 2 root root 4096 2006-07-07 15:36 sv -rwx------ 1 root root 9504 2006-07-07 15:36 uninstall
The output is: eth0 Link encap:Ethernet HWaddr 00:0C:76:2C:2A:0C inet addr:192.168.1.5 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::20c:76ff:fe2c:2a0c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1992318 errors:0 dropped:0 overruns:0 frame:0 TX packets:2160752 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:1952390511 (1.8 GiB) TX bytes:1961436755 (1.8 GiB) Base address:0xcc00 Memory:dfda0000-dfdc0000 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:1583 errors:0 dropped:0 overruns:0 frame:0 TX packets:1583 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:151410 (147.8 KiB) TX bytes:151410 (147.8 KiB)
You're using the wrong IP address in ISPConfig. You must use 192.168.1.5, but currently you're using 62.195.107.203!
Oooooooooh Yesssssssssssss !!! ( is dancing around in small circles!) ) Tank you! sometimes solutions can be so simple ! at least I learned a lot about Linux trying to find the problem. Tanx again! Jelle