bss
12th December 2006, 17:07
HI!
My problem is:
I have a domain called oblika.si and
when I enter the this address (http://oblika.si or http://www.oblika.si) ito the browser I get my apache server default document root(/) insted of (/web11/web/). When I enter the IP address into my browser it doesn't point to shared ip page but to default server root... so I had an a problem becouse I have configured my apache settings (in isp config) wrong - apache2.conf insted of httpd.conf.
So I installed webmin on my server and looked to my apache virtual hosts configuration.
my /etc/apache2/vhosts/Vhosts_ispconfig.conf look like that:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 84.255.204.201:80
<VirtualHost 84.255.204.201:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.oblika.si:80
######################################
#
#
<VirtualHost 84.255.204.201:80>
ServerName www.oblika.si:80
ServerAdmin webmaster@oblika.si
DocumentRoot /var/www/web11/web
ServerAlias oblika.si webmail.oblika.si
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/web11/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web11/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/web11/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web11/phptmp/
php_admin_value session.save_path /var/www/web11/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web11/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/web11/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
</VirtualHost>
#
#
#
But i think this is one of the problem causing things:
<VirtualHost 84.255.204.201:80>
And I tried to change this line to <VirtualHost _default_:80>
and then it worked...but...ISP config configs this as <VirtualHost 84.255.204.201:80>
and if there is a solution to config this in ISPconfig becouse in need perfect setup for multi domain hosting and i dont want to change every apache virtual host by hand....and i think tha ISPconfig creates IP based virtual hosts in apache insted of name based virtual hosts!!!
Thank you for all in advance!
P.S.:
My DNS settings are OK.
My problem is:
I have a domain called oblika.si and
when I enter the this address (http://oblika.si or http://www.oblika.si) ito the browser I get my apache server default document root(/) insted of (/web11/web/). When I enter the IP address into my browser it doesn't point to shared ip page but to default server root... so I had an a problem becouse I have configured my apache settings (in isp config) wrong - apache2.conf insted of httpd.conf.
So I installed webmin on my server and looked to my apache virtual hosts configuration.
my /etc/apache2/vhosts/Vhosts_ispconfig.conf look like that:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 84.255.204.201:80
<VirtualHost 84.255.204.201:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.oblika.si:80
######################################
#
#
<VirtualHost 84.255.204.201:80>
ServerName www.oblika.si:80
ServerAdmin webmaster@oblika.si
DocumentRoot /var/www/web11/web
ServerAlias oblika.si webmail.oblika.si
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/web11/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web11/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/web11/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web11/phptmp/
php_admin_value session.save_path /var/www/web11/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web11/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/web11/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
</VirtualHost>
#
#
#
But i think this is one of the problem causing things:
<VirtualHost 84.255.204.201:80>
And I tried to change this line to <VirtualHost _default_:80>
and then it worked...but...ISP config configs this as <VirtualHost 84.255.204.201:80>
and if there is a solution to config this in ISPconfig becouse in need perfect setup for multi domain hosting and i dont want to change every apache virtual host by hand....and i think tha ISPconfig creates IP based virtual hosts in apache insted of name based virtual hosts!!!
Thank you for all in advance!
P.S.:
My DNS settings are OK.