View Full Version : All Domains go to root folder
tazmon95
17th December 2007, 16:39
Hello All,
I've looked through many pages here on the forums and couldn't find anything related to what is happening with my fresh install on the Perfect Server Ubuntu 7.10.
After completing the install and everything seemed to work fine, I was able to access the control panel via the IP address just fine. I went to my DNS server and changed the records to point to this box and it's spread around the net so it works now. My problem is this. When I go to the url that should go to the /var/www/www.mydomain.com/web folder, instead it just goes to the /var/www folder. This is my second ISPConfig setup and I've checked all the settings I can think of to make sure they are the same on the different machines. The only differences are that the new on is on Ubuntu 7.10 and the old one on Ubuntu 6.10.
I'm not really sure where to look next. Thanks for the help
~Taz
tazmon95
18th December 2007, 06:51
Anyone have any ideas on this?
Everything coming in on port 80 just goes to /var/www and I see my directory tree with the domains listed that the address should go to. I've been looking at the Vhosts file and they look like they are telling the server to go to the correct directory... it's almost like the vhosts file isn't getting looked at though.
Any ideas?
falko
18th December 2007, 18:01
What's in Vhosts_ispconfig.conf, and what's the output of ifconfig?
tazmon95
18th December 2007, 18:11
Thanks for biting on this one Falko. I kept looking and did find someone who had the same problem about 3 months ago but that thread ended without the problem being resolved.
Here's what you asked for.
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 220.84.40.61:80
<VirtualHost 220.84.40.61:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.clubcfac.com:80
######################################
#
#
<VirtualHost 220.84.40.61:80>
ServerName www.clubcfac.com:80
ServerAdmin webmaster@clubcfac.com
DocumentRoot /var/www/web4/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 $
ErrorLog /var/www/web4/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/web4/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/web4/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
</VirtualHost>
#
#
#
And here is the output from ifconfig
eth0 Link encap:Ethernet HWaddr 00:B0:D0:74:4A:12
inet addr:192.168.3.150 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::2b0:d0ff:fe74:4a12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22294 errors:0 dropped:0 overruns:1 frame:0
TX packets:6815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3706646 (3.5 MB) TX bytes:1171183 (1.1 MB)
Interrupt:5 Base address:0x6c00
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:281 errors:0 dropped:0 overruns:0 frame:0
TX packets:281 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17640 (17.2 KB) TX bytes:17640 (17.2 KB)
till
18th December 2007, 18:35
Your server is behind a router, so you will have to select the IP 192.168.3.150 for the websites and not the external IP in ISPConfig.
tazmon95
22nd December 2007, 20:31
Till,
Thanks for that. It seemed obvious to me to set that to the IP of the external network, not the internal one... Such an easy fix that I overlooked so many times.
~Taz
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.