OT:Apache question

Mark Knecht mknecht at controlnet.com
Fri Feb 20 19:08:01 UTC 2004


Rick Stevens wrote:

> Why not get into your apache config file and do something like this:

Rick - I still get the Alert box nonsense with www.knechthome.com in it. 
I think this is the real issue. Why does Apache look at my hosts file 
and choose to use this info?

OK, so the first question that came up was which apache config file? I 
find two directories

/etc/apache/conf
/etc/apache2/conf/

The second has an apache2.conf file in which I placed your edits at the end:

Alias /files "/mnt/data/sessions"


     <Directory "/mnt/data/sessions">
             Options Indexes FollowSymlinks MultiViews
             AllowOverride None
             Order allow,deny
             Allow from all
     </Directory>

Is this the right file?


> 
> Stop and restart Apache after changing the file.  

Did this. /var/log/apache2/error_log shows the restart.

/var/log/apache2/access_log shows me going to the top page 
(marksmusic.myvnc.com)

63.146.68.30 - - [20/Feb/2004:11:02:39 -0800] "GET / HTTP/1.1" 304 - "-" 
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040217"


Aiming your browser
> at "http://www.your.site/files" will result in an index listing of the
> "/directory/where/the/files/are" directory.

However, when I try to access the files page it shows it failing with a 
301 error I think.

301 == "Moved Permanently"?

63.146.68.30 - - [20/Feb/2004:11:05:00 -0800] "GET /files HTTP/1.1" 301 
338 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040217"






More information about the Redhat-install-list mailing list