On 13/11/2007, Janusz Gumkowski <[EMAIL PROTECTED]> wrote:
> Looking at your directory tree, you should add:
> Control {
> Alias /
> Location /
> }
> inside Virtual{} block.
Thanks - that's what I was missing.
> Actually, I don't really think this is what you want, because the above will
> serve your whole chroot() tree to the world, including /etc and log files.
> Storing html files in a specified directory (say: /html) will definitely be
> a better choice: Alias / Location /html
As it turns out, it's not only better because of that separation -
it's better because specifying a location of "/" causes Mathopd to
respond with 404 errors, even for valid requests! This appears to be
a bug. I have now got things working, and I observe the following
behaiour (Mathopd v1.5p5, Ubuntu 7.04 (Feisty), 2.6.20 kernel) using
the config file you posted:
Location set to "/html" - works fine, as you demonstrated.
Location set to "/" - gives me nothing but 404 Not Found errors
Location set to "/." - works fine, if you did want to serve the root
directory.
Does anyone else get this behaviour?
Once again, thanks again for your help getting this working!
Paul.
> # cat mathopd.conf
> User www
> StayRoot Off
> RootDirectory /test
>
> Log /access.log
> ErrorLog /error.log
> Control {
> Types {
> text/html { * }
> }
> IndexNames { index.html }
> }
>
> Server {
> Port 80
> Address 0.0.0.0
> Virtual {
> AnyHost
> Control {
> Alias /
> Location /html
> }
> }
> }