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
https://forums.phpfreaks.com/topic/44934-global-redirect-or-alias/
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!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.