HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Web server symbolic link? (http://www.howtoforge.com/forums/showthread.php?t=48741)

withanhdammit 13th September 2010 04:22

Web server symbolic link?
 
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

falko 13th September 2010 13:03

Which distribution do you use?

withanhdammit 13th September 2010 15:28

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

Thanks!

tronds 13th September 2010 19:20

Quote:

Originally Posted by withanhdammit (Post 239189)
It's Debian 5.06 (that's Lenny, right?)

Thanks!

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

Code:

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

withanhdammit 13th September 2010 20:21

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

withanhdammit 13th September 2010 20:34

Quote:

Originally Posted by tronds (Post 239197)
do you have this file someplace: "roundcubemail.conf" ?

Code:

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

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


All times are GMT +2. The time now is 12:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.