| CatsPaw 2004-03-02, 9:35 am |
| I have virtual hosts working on many configurations,
but cannot get it working on a fedora / apache 2 configuration
Server version: Apache/2.0.47
Fedora Core release 1 (Yarrow)
Other default settings are :-
DocumentRoot /www
Directory />
Options None
AllowOverride None
order deny,allow
deny from all
</Directory>
<Directory "/www">
Options SymLinksIfOwnerMatch IncludesNoExec
XBitHack full
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/www/webpages">
Options SymLinksIfOwnerMatch IncludesNoExec
XBitHack full
AllowOverride None
Order deny,allow
Deny from all
allow from xxx.xxx
</Directory>
Alias /dir01 "/www/webpages/dir01/
<Directory "/www/webpages/dir01">
Options Indexes IncludesNoExec
XBitHack full
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /dir02 "/www/webpages/dir02/"
<Directory "/www/webpages/dir02">
Options Indexes IncludesNoExec
XBitHack full
AllowOverride None
order allow,deny
allow from all
</Directory>
NameVirtualHost xxx.xx.xx.xx (a real ip-address)
<VirtualHost xxx.xx.xx.xx> (same as real ip-address above)
ServerName web02.xxx.xxx.xxx
DocumentRoot /www/webpages/dir02
ServerAdmin webmaster@xxx.xx.xx.xx
<Directory /www/webpages/dir02>
Options Indexes IncludesNoExec
XBitHack full
AllowOverride None
order allow,deny
allow from all
</Directory>
ErrorLog logs/02_error_log
CustomLog logs/02_access_log common
CustomLog logs/02_referer_log referer
CustomLog logs/02_agent_log agent
</VirtualHost>
If I put
http://web02.xxx.xxx.xxx
in a browser, I get (in logs/02_error_log)
Directory index forbidden by rule: /www/webpages/dir02/
If I put in the URL web02.xxx.xxx.xxx/dir02 the browser goes
to the correct pages(directory) and gives me a listing.
I have tried multiple things to try and get the
vitual server to give me /www/webpages/dir02/ as the
document root for the server, and allow indexing in it
and have completely and utterly failed.
I should have been doing multiple other extremely urgent
things. :-(
Please, help ?
|