Vhost denied access.
-
Greg MacLelland
Vhost denied access.
Mon June 23 2008 22:26:36 UTCAs I browse to me new midgard install. Apache2 displays "Index of /". Last line in Apache2 error log reads "(error) (client 192.xxx.xxx.xxx)client denied by server configuration /var/lib/midgard/vhosts/www.mydomain.ca/8001/midcom-static/index.php" Any direction would be appreciated.
-
Re: Vhost denied access.
Tue June 24 2008 10:20:05 UTCHi!
Wy do you want to request files from midcom-static? I just noticed that all php files in midcom-static directory are in restricted area.
What happens if you request www.mydomain.ca:8001?
Piotras
-
Re: Vhost denied access.
Tue June 24 2008 17:23:23 UTCThat's what the log reads. I on the other hand am browsing to http://192.xxx.xxx.xxx:8001. I chose IP address because database domain name and website address are not hosted on same server. When I browse to IP address Apache index page appears and said error log appears.
-
Re: Vhost denied access.
Tue June 24 2008 17:39:05 UTCDuring last reply I thought to direct browser to fqdn and got same apache index page and these lines showed up in the apache error log.
[Tue Jun 24 11:29:18 2008] [debug] midgard-apache2.c(1554): [client 127.0.1.1] midgard_translate_handler(utf-8, http://hostname.domainname.ca:8001/) [Tue Jun 24 11:29:18 2008] [debug] select_db2.h(50): [client 127.0.1.1] Midgard: select_database opened database gss [Tue Jun 24 11:29:18 2008] [debug] midgard-apache2.c(1604): [client 127.0.1.1] Midgard: host record for hostname.domainname.ca:8001 not found [Tue Jun 24 11:29:18 2008] [error] [client 127.0.1.1] client denied by server configuration: /var/lib/midgard/vhosts/www.domainname.ca/8001/midcom-static/index.php [Tue Jun 24 11:29:19 2008] [debug] midgard-apache2.c(1554): [client 127.0.1.1] midgard_translate_handler(utf-8, http://hostname.domainname.ca:8001/favicon.ico) [Tue Jun 24 11:29:19 2008] [debug] select_db2.h(86): [client 127.0.1.1] Midgard: select_database reused open (gss) [Tue Jun 24 11:29:19 2008] [debug] midgard-apache2.c(1604): [client 127.0.1.1] Midgard: host record for hostname.domainname.ca:8001 not found [Tue Jun 24 11:29:19 2008] [error] [client 127.0.1.1] File does not exist: /var/lib/midgard/vhosts/www.domainname.ca/8001/favicon.ico [Tue Jun 24 11:29:51 2008] [debug] midgard-apache2.c(1554): [client 127.0.1.1] midgard_translate_handler(utf-8, http://hostname.domainname.ca:8001/favicon.ico) [Tue Jun 24 11:29:51 2008] [debug] select_db2.h(50): [client 127.0.1.1] Midgard: select_database opened database gss [Tue Jun 24 11:29:52 2008] [debug] midgard-apache2.c(1604): [client 127.0.1.1] Midgard: host record for hostname.domainname.ca:8001 not found [Tue Jun 24 11:29:52 2008] [error] [client 127.0.1.1] File does not exist: /var/lib/midgard/vhosts/www.domainname.ca/8001/favicon.ico [Tue Jun 24 11:30:19 2008] [debug] midgard-apache2.c(1554): [client 127.0.1.1] midgard_translate_handler(utf-8, http://hostname.domainname.ca:8001/) [Tue Jun 24 11:30:19 2008] [debug] select_db2.h(50): [client 127.0.1.1] Midgard: select_database opened database gss [Tue Jun 24 11:30:19 2008] [debug] midgard-apache2.c(1604): [client 127.0.1.1] Midgard: host record for hostname.domainname.ca:8001 not found [Tue Jun 24 11:30:19 2008] [error] [client 127.0.1.1] client denied by server configuration: /var/lib/midgard/vhosts/www.domainname.ca/8001/midcom-static/index.php
-
Re: Vhost denied access.
Wed June 25 2008 11:40:42 UTCHi!
Midgard: host record for hostname.domainname.ca:8001 not found
Midgard database and host table shoudl contain such record. The simplest solution is to update it manually in MySQL :
UPDATE host SET name='hostname.domainname.ca', port=8001;
Piotras
-
Re: Vhost denied access.
Thu June 26 2008 19:10:43 UTCI don't know how to issue that command. Is it command line?
To this point I have followed the Debian/Etch installation instructions and get to the point where it says to launch the site wizard from your favourite browser and I get nothing. Can I set the database up any other way? I have tried /aegir and /spider-man also.
I am a novice user.
-
Re: Vhost denied access.
Thu June 26 2008 19:26:46 UTCHi!
I don't know how to issue that command. Is it command line?
It should be invoked at MySQL command line. Midgard stores hosts' data in host table in database, so host record must match virtual host name configured for Apache.
In command line:
mysql midgardIn MySQL:
UPDATE host SET name='hostname.domainname.ca', port=8001;Request the page when it's done.
Piotras
-
Re: Vhost denied access.
Thu June 26 2008 19:48:28 UTCSuccessful UPDATE but still no page.
-
Re: Vhost denied access.
Thu June 26 2008 19:54:20 UTCAgain. Apache's error log. You can also paste host's records. In MySQL:
SELECT id, name, port, prefix FROM host;Piotras
-
Re: Vhost denied access.
Thu June 26 2008 21:15:25 UTC[Thu Jun 26 13:35:09 2008] [error] [client 192.168.1.105] client denied by server configuration: /var/lib/midgard/vhosts/www.greatscotsolutions.com/8001/midcom-static/index.php [Thu Jun 26 13:39:19 2008] [error] [client 127.0.1.1] client denied by server configuration: /var/lib/midgard/vhosts/www.greatscotsolutions.com/8001/midcom-static/index.php [Thu Jun 26 13:39:20 2008] [error] [client 127.0.1.1] File does not exist: /var/lib/midgard/vhosts/www.greatscotsolutions.com/8001/favicon.ico [Thu Jun 26 13:39:47 2008] [error] [client 127.0.1.1] File does not exist: /var/www/favicon.ico [Thu Jun 26 13:40:31 2008] [error] [client 127.0.1.1] File does not exist: /var/www/greatscotsolutons.com [Thu Jun 26 13:40:39 2008] [error] [client 127.0.1.1] File does not exist: /var/www/greatscotsolutons.com [Thu Jun 26 13:40:49 2008] [error] [client 127.0.1.1] File does not exist: /var/www/greatscotsolutons.ca [Thu Jun 26 13:41:00 2008] [error] [client 127.0.1.1] File does not exist: /var/www/greatscotsolutons.ca [Thu Jun 26 14:58:15 2008] [notice] caught SIGTERM, shutting down [Thu Jun 26 14:58:16 2008] [debug] midgard-apache2.c(250): Midgard: closing 1 database connections [Thu Jun 26 14:58:16 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Thu Jun 26 14:58:16 2008] [notice] mod_python: using mutex_directory /tmp [Thu Jun 26 14:58:17 2008] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11 Midgard/1.8.8 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Thu Jun 26 14:58:17 2008] [info] Server built: Jan 27 2008 18:13:21 [Thu Jun 26 14:58:17 2008] [debug] prefork.c(993): AcceptMutex: sysvsem (default: sysvsem) "/var/log/apache2/error.log" [readonly] 39L, 4662C
