Jump to content

Global Redirect or Alias


chesterthebear

Recommended Posts

Hi All,

 

Please forgive me extra newbie status when it comes to Apache.  I'm still getting my head around server architecture.

 

Here's the problem...

 

My server is configured by programmers, but it needs to be used by users.

 

To access their webmail, they need to to here

dash.servername.com/squirrelmail

 

There are two problems with that.

First, it isn't a friendly address to remember, and second, spelling squirrelmail may prove a challenge to some.

 

Therefore, I'd like to create an alias, something like

domain.tld/mail

 

It doesn't really matter whether this is a true blind alias, or if this address simply redirects to the real location.

 

How and where do I set that up for all domains hosted on the server?

 

CTB

Link to comment
Share on other sites

Hi there. Assuming you are using virtualhosts to manage multiple domains, specifying an alias will work across all of them. In fact, I am not sure how to limit aliasing to just a single virtualhost. Because you would be aliasing a directory, within your original documentroot, there is no need to specify and configure another directory entry like the example alias does (for icons). Just simply add:

 

Alias /mail "absolute/path/to/your/directory"

 

Hope this helps!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.