Web server symbolic link?

Discussion in 'Server Operation' started by withanhdammit, Sep 13, 2010.

  1. withanhdammit

    withanhdammit New Member

    I think I need to do this with a symbolic link, but I'm not sure that's right, and I'm not sure exactly how to do what I want.

    I installed a mail server and used squirrelmail for the webmail client. I can access this via:
    mailserver.com/squirrelmail

    I then decided that I want to use roundcubemail, so I installed and configured that, but I cannot get to it via:
    mailserver.com/roundcubemail

    When I look around, I see that squirrelmail is installed in /usr/share/squirrelmail and roundcubemail is installed in /usr/share/roundcubemail.

    When I look in /var/www I don't see any links that show me how the squirrelmail is allowed, so I don't have any clue how to allow the roundcubemail.

    Webserver is Apache if that makes any difference.

    Thanks for any help!

    h
     
  2. falko

    falko Super Moderator

    Which distribution do you use?
     
  3. withanhdammit

    withanhdammit New Member

    It's Debian 5.06 (that's Lenny, right?)

    Thanks!
     
  4. tronds

    tronds New Member

    do you have this file someplace: "roundcubemail.conf" ?

    Code:
    locate roundcubemail.conf
    if you find it, past the content here :)
     
  5. withanhdammit

    withanhdammit New Member

    There is no roundcubemail.conf

    I did both of these from /
    locate roundcubemail.conf
    and
    find -name roundcubemail.conf

    neither returned anything. I do know there is a main.inc.php and db.inc.php that I configured when I did the install, is there anything there or should it be contained in a roundcubemail.conf?

    h
     
  6. withanhdammit

    withanhdammit New Member

    I don't see my first reply, not sure if it's just delayed in displaying or if I didn't hit the "go" button.

    In any case, I've got it working. The roundcubemail.conf does not exist, but that made me look for squirrelmail.conf, which while it didn't exist there was a folder called squirrelmail.conffiles which had a file called apache.conf. When I looked in that I saw a line that said
    Code:
    Alias /squirrelmail "/usr/share/squirrelmail/"
    so I went to /etc/apache2/sites-available and edited the site configuration and added
    Code:
    Alias /roundcubemail "/usr/share/roundcubemail/"
    Thanks for the suggestion, it pointed me in the right direction.

    Now, if there is a better way to do this please let me know. I plan on hosting a couple of websites/email portals on this server and while I can include the alias in all of the sites-available files, it would be great if I didn't have to.

    Thanks again tronds, I appreciate the clue!

    h
     

Share This Page