if I try to get http://192.168.1.205/example  from another PC (192.168.1.8),
I can read :

## browser response :
404 The requested URL /example was not found on this server (...)

## access.log from Apache (Debug loglevel) :
192.168.1.8 - - [08/Jul/2003:14:13:58 +0200] "GET /example HTTP/1.1" 404 279 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"


## apache -S
VirtualHost configuration:
192.168.1.205:80       is a NameVirtualHost
                       default server localhost (/etc/apache/conf/midgard-data.conf:18)
                       port 80 namevhost localhost 
(/etc/apache/conf/midgard-data.conf:18)
## there is no other VHost...

mysql> select * from host;
+----+---------------+------+-------+------+-------+------+--------+---------------------+-----------+
| id | name          | root | style | info | owner | port | online | prefix            
  | sitegroup
+----+---------------+------+-------+------+-------+------+--------+---------------------+-----------+
|  1 | 192.168.1.205 |    5 |     1 | auth |     0 |   80 |      1 | /admin            
  |         0
|  2 | 192.168.1.205 |   16 |     2 |      |     1 |   80 |      1 | /example          
  |         0
|  3 | 192.168.1.205 |    4 |     3 | auth |     0 |   80 |      1 | /asgard           
  |         0
|  4 | 192.168.1.205 |    4 |     4 | auth |     0 |   80 |      1 | /asgard/framed    
  |         0
|  5 | 192.168.1.205 |    4 |     5 | auth |     0 |   80 |      1 | 
/asgard/framed/top  |         0
|  6 | 192.168.1.205 |    4 |     6 | auth |     0 |   80 |      1 | 
/asgard/framed/main |         0
+----+---------------+------+-------+------+-------+------+--------+---------------------+-----------+
6 rows in set (0.00 sec)

# are rows with name='localhost' necessary ??
# mysql.log :
030708 14:23:09 25 Statistics
25 Query SELECT id,style,root,info&1,Length(prefix),sitegroup FROM host WHERE name='localhost' AND port IN (0,80) AND prefix=Left('/example',Length(prefix)) AND IF(8>=Length(prefix),MID('/example',1+Length(prefix),1) IN ('','/'),0)=1 AND online=1 ORDER BY prefix DESC, port DESC
25 Query SELECT info&2 FROM page WHERE id=16
25 Query SELECT name,value FROM pageelement WHERE page=16 AND info&1=1



2 questions :
1/ why the MYSQL request contain "name='localhost'" ???
2/ in the address bar of my browser (IE, sorry), http://192.168.1.205/example become http://localhost/example !?


so ?


Benoit.



pp a �crit:
Please send output if possible for Vhost configuration.

mysql:
select * from host where name='192.168.1.1'

set apache log to debug with LogLevel debug

Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to