DocumentRoot not working ?

Discussion in 'Install/Configuration' started by cmap18, Mar 21, 2007.

  1. cmap18

    cmap18 New Member

    hi
    I'm pretty new to ls.We are using standard version 2.6.
    I've set up a rails based virtual host with the DocumentRoot set as /var/www/vhosts/domain/public in public there are a few html files. When I access the domain or specify the html file after it I always get a 404 error.
    It doesn't seem to have the right docroot or I need to set it elsewhere though I've been all through the mgt and can't see it.
    The only listener running is on the domain name mapped to that virtual host(only one I have). Logs just show a 404 error. Any pointers much appreciated. I have restarted ls and the box also.
    Ely
  2. mistwang

    mistwang LiteSpeed Staff

    You can turn on debug logging by setting "Debug Level" to "HIGH", the log should tell you where LSWS looks for the file.

    I think it might be caused by inproper configuration of the Rails Context, it should be pointed to /var/www/vhosts/doamin.
  3. cmap18

    cmap18 New Member

    hi
    I managed to get this to work creating a new vhost and adding rails as context. not sure what was wrong with the last one.
    Thanks

Share This Page