HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Adding additional dyndns domains - They all show the "root web" (http://www.howtoforge.com/forums/showthread.php?t=20242)

olavxxx 8th February 2008 10:00

Adding additional dyndns domains - They all show the "root web"
 
Hi,

I'm kindof noob at this *nix, so, lol.. please bear with me.

Anyhow, here is the issue:
I added more hosts on the dyndns site and I tried making an account on my server. It directs correctly in the web-browser, only problem is that I cant seem to show the contents of the folder that ISPconfig creates for the user.

I see in the shell that the folder is created, but:

http://olavxxx.mine.nu
http://olav-x.gotdns.org

They both show the "root www"

here is my ls -l
Quote:

drwxr-xr-x 2 root root 4096 2008-02-05 09:06 apache2-default
drwxr-xr-x 17 root root 4096 2008-01-21 15:16 cms
lrwxrwxrwx 1 root root 13 2008-02-07 10:21 cms.olavxxx.mine.nu -> /var/www/web3
lrwxrwxrwx 1 root root 13 2008-02-07 10:06 http.olavxxx.mine.nu -> /var/www/web1
-rw-r--r-- 1 root root 4 2008-02-06 15:50 index.html
-rw-r--r-- 1 root root 5927750 2008-02-07 09:20 nb-NO_Joomla_1.5_Stable_Khepri_KOMP.zip
drwxr-xr-x 2 root root 4096 2008-02-04 10:30 sharedip
drwxr-xr-x 8 www-data web1 4096 2008-02-08 04:00 web1
drwxr-xr-x 8 www-data web3 4096 2008-02-08 04:00 web3
drwxr-xr-x 9 web6_test web6 4096 2008-02-08 09:51 web6
drwxr-xr-x 2 root root 4096 2008-02-01 06:25 webalizer
lrwxrwxrwx 1 www-data web6 13 2008-02-07 10:30 www.olav-x.gotdns.org -> /var/www/web6
When I added the new dyndns host, I added it as "New master" in the DNS Manager. The settings I entered as they where entered on the main domain.

Also, I created a user and an hostingplan with php, etc. access, but for some reason, the domain seems to be meerly "parked" and uses the same document-root as the root of www.

falko 9th February 2008 18:29

What's the output of
Code:

ifconfig
, and what's in your Vhosts_ispconfig.conf?

olavxxx 9th February 2008 21:39

Quote:

eth0 Link encap:Ethernet HWaddr 00:0C:29:6F:75:A5
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6f:75a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:936600 errors:0 dropped:0 overruns:0 frame:0
TX packets:731671 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:722673644 (689.1 MB) TX bytes:119335674 (113.8 MB)
Base address:0x2040 Memory:e8920000-e8940000

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:237045 errors:0 dropped:0 overruns:0 frame:0
TX packets:237045 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20943360 (19.9 MB) TX bytes:20943360 (19.9 MB)
---

The vhosts file is empty, but I have many of them...

Quote:

-rw-r--r-- 1 root root 0 2008-02-08 09:51 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 2072 2008-02-07 09:15 Vhosts_ispconfig.conf_07-02-08_09-15-33
-rw-r--r-- 1 root root 2072 2008-02-07 09:15 Vhosts_ispconfig.conf_07-02-08_09-15-47
-rw-r--r-- 1 root root 2072 2008-02-07 10:04 Vhosts_ispconfig.conf_07-02-08_10-04-28
-rw-r--r-- 1 root root 2064 2008-02-07 10:05 Vhosts_ispconfig.conf_07-02-08_10-05-14
-rw-r--r-- 1 root root 2074 2008-02-07 10:06 Vhosts_ispconfig.conf_07-02-08_10-06-42
-rw-r--r-- 1 root root 3860 2008-02-07 10:14 Vhosts_ispconfig.conf_07-02-08_10-14-20
-rw-r--r-- 1 root root 3860 2008-02-07 10:17 Vhosts_ispconfig.conf_07-02-08_10-17-38
-rw-r--r-- 1 root root 3860 2008-02-07 10:17 Vhosts_ispconfig.conf_07-02-08_10-17-51
-rw-r--r-- 1 root root 3860 2008-02-07 10:19 Vhosts_ispconfig.conf_07-02-08_10-19-37
-rw-r--r-- 1 root root 3860 2008-02-07 10:19 Vhosts_ispconfig.conf_07-02-08_10-19-52
-rw-r--r-- 1 root root 3860 2008-02-07 10:20 Vhosts_ispconfig.conf_07-02-08_10-20-27
-rw-r--r-- 1 root root 3846 2008-02-07 10:21 Vhosts_ispconfig.conf_07-02-08_10-21-33
-rw-r--r-- 1 root root 3842 2008-02-07 10:21 Vhosts_ispconfig.conf_07-02-08_10-21-51
-rw-r--r-- 1 root root 3842 2008-02-07 10:26 Vhosts_ispconfig.conf_07-02-08_10-26-27
-rw-r--r-- 1 root root 3842 2008-02-07 10:27 Vhosts_ispconfig.conf_07-02-08_10-27-22
-rw-r--r-- 1 root root 3842 2008-02-07 10:27 Vhosts_ispconfig.conf_07-02-08_10-27-34
-rw-r--r-- 1 root root 3842 2008-02-07 10:27 Vhosts_ispconfig.conf_07-02-08_10-27-49
-rw-r--r-- 1 root root 3842 2008-02-07 10:28 Vhosts_ispconfig.conf_07-02-08_10-28-05
-rw-r--r-- 1 root root 5458 2008-02-07 10:30 Vhosts_ispconfig.conf_07-02-08_10-30-11
-rw-r--r-- 1 root root 5458 2008-02-07 10:31 Vhosts_ispconfig.conf_07-02-08_10-31-48
-rw-r--r-- 1 root root 5458 2008-02-07 10:34 Vhosts_ispconfig.conf_07-02-08_10-34-04
-rw-r--r-- 1 root root 5458 2008-02-07 10:34 Vhosts_ispconfig.conf_07-02-08_10-34-30
-rw-r--r-- 1 root root 5458 2008-02-07 10:34 Vhosts_ispconfig.conf_07-02-08_10-34-47
-rw-r--r-- 1 root root 5458 2008-02-07 10:35 Vhosts_ispconfig.conf_07-02-08_10-35-40
-rw-r--r-- 1 root root 5458 2008-02-08 09:48 Vhosts_ispconfig.conf_08-02-08_09-48-32
-rw-r--r-- 1 root root 5458 2008-02-08 09:49 Vhosts_ispconfig.conf_08-02-08_09-49-27
-rw-r--r-- 1 root root 5458 2008-02-08 09:49 Vhosts_ispconfig.conf_08-02-08_09-49-43
-rw-r--r-- 1 root root 5458 2008-02-08 09:51 Vhosts_ispconfig.conf_08-02-08_09-51-30
BTW:
I have installed dydns on the system!

The latest vhosts file is:
Quote:

###################################
#
# 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: http.olavxxx.mine.nu:80
######################################
#
#
<VirtualHost 192.168.0.100:80>
ServerName http.olavxxx.mine.nu:80
ServerAdmin webmaster@olavxxx.mine.nu
DocumentRoot /var/www/web1/web
ServerAlias olavxxx.mine.nu
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.ht$
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 On
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web1/phptmp/
php_admin_value session.save_path /var/www/web1/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/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: cms.olavxxx.mine.nu:80
######################################
#
#
<VirtualHost 192.168.0.100:80>
ServerName cms.olavxxx.mine.nu:80
ServerAdmin webmaster@olavxxx.mine.nu
DocumentRoot /var/www/web3/web
ServerAlias olavxxx.mine.nu
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.ht$
ScriptAlias /cgi-bin/ /var/www/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web3/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/web3/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web3/phptmp/
php_admin_value session.save_path /var/www/web3/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/web3/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/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.olav-x.gotdns.org:80
######################################
#
#
<VirtualHost 192.168.0.100:80>
ServerName www.olav-x.gotdns.org:80
ServerAdmin webmaster@olav-x.gotdns.org
DocumentRoot /var/www/web6/web
ServerAlias olav-x.gotdns.org
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.ht$
ScriptAlias /cgi-bin/ /var/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web6/log/error.log
AddHandler cgi-script .pl
ErrorLog /var/www/web6/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/web6/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web6/phptmp/
php_admin_value session.save_path /var/www/web6/phptmp/
Alias /error/ "/var/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 ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
</VirtualHost>
#
#
#


falko 10th February 2008 17:56

Please do this:
Code:

mv Vhosts_ispconfig.conf_08-02-08_09-51-30 Vhosts_ispconfig.conf
httpd -t

What's the output of the last command?


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

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