Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th July 2006, 16:20
jelle_78 jelle_78 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Domain name pointing to root dir.

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
Reply With Quote
Sponsored Links
  #2  
Old 6th July 2006, 08:40
freedog96150 freedog96150 is offline
Junior Member
 
Join Date: Jul 2006
Location: Nevada
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #3  
Old 6th July 2006, 11:33
jelle_78 jelle_78 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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...
Reply With Quote
  #4  
Old 6th July 2006, 12:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

What's in Vhosts_ispconfig.conf? Is Vhosts_ispconfig.conf included in your main Apache configuration?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 6th July 2006, 14:27
jelle_78 jelle_78 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)

Quote:
Originally Posted by falko
What's in Vhosts_ispconfig.conf? Is Vhosts_ispconfig.conf included in your main Apache configuration?
###################################
#
# 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 webmaster@bubbelen.darktech.org
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 webmaster@woops.nl
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 webmaster@etters.b0ne.com
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>
#
#
#

Last edited by jelle_78; 6th July 2006 at 18:05.
Reply With Quote
  #6  
Old 7th July 2006, 10:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Quote:
Originally Posted by jelle_78
How can i check if Vhosts is included in my main Apache config?
Check your main Apache configuration for something like
Code:
Include /path/to/Vhosts_ispconfig.conf
What's the output of
Code:
ifconfig
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 7th July 2006, 22:11
jacobhenry jacobhenry is offline
Member
 
Join Date: Feb 2006
Posts: 45
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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 webmaster@scratchco.com
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>

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
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

Last edited by jacobhenry; 7th July 2006 at 22:26.
Reply With Quote
  #8  
Old 7th July 2006, 22:31
jelle_78 jelle_78 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Check your main Apache configuration for something like
Code:
Include /path/to/Vhosts_ispconfig.conf
The last line in my apache2.conf file shows:

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf



What's the output of
Code:
ifconfig
?
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)
Reply With Quote
  #9  
Old 8th July 2006, 12:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Quote:
Originally Posted by jelle_78
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
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!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 8th July 2006, 12:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

@jacobhenry: Please open a new thread!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
monit howto Jamesk5 HOWTO-Related Questions 11 5th August 2008 15:10
Subdomains through ISPConfig for different purposes wustl_2008 Tips/Tricks/Mods 31 25th October 2007 21:45
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 16:29
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 19:52
Everything owned by root !!! wwparrish Installation/Configuration 6 7th February 2006 21:25


All times are GMT +2. The time now is 01:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.