Questions tagged [alias]

In computer sciences, an alias is a name which usually designates an already-named reference.

Aliases are names used to designate objects, items and settings which already possess a name. In *nix systems, they usually serve as :

  • Hostnames ; a machine possesses a unique hostname, which can be surrounded by aliases. On a Linux system, you can find your hostname by typing hostname, whereas the /etc/hosts file might contain other aliases for the IP representation of your machine on its network interfaces.

  • Users ; on *nix systems, each user has a given name, registered in the /etc/passwd file. However, for some other purposes such as email processing, it might be useful to create aliases for users. This can be done in the /etc/aliases file. (e.g. root is usually aliased as the postmaster).

  • Shell commands ; on *nix systems, it is possible to set an alias referencing a command/program (with possible options and arguments). The most common one is probably ll, which designates ls -l (long list). An alias can be created using the alias (man page) command, and destroyed thanks to the unalias bash utility (man page).

One could also consider UNIX links as an implementation of aliases for files (in the UNIX meaning). See ln for more information (man page).

Each application handles its aliases as it wishes to. Some don't even implement this possibility, and expect the administrator to use the real resources names. Please refer to the applications' documentation for more information on specific cases.

332 questions
-1
votes
1 answer

Make mydomain.fr "mirror" to mydomain.com/france/

How do I "mirror"/point various specific domain names to a given .com/suburl/? Examples: mydomain.fr > mymaindomain.com/france/ mydomain.se > mymaindomain.com/sweden/ I currently have the following .conf setup: ServerName…
-1
votes
1 answer

How to Get Rid Off 'index.php' in URI Using Virtual Host and .htaccess File?

I am using a Virtual Host for my Laravel 4 Project on my local host to get rid off typing 'localhost/L4/public/index.php/route'. Laravel also uses a .htaccess file in it's public directory. Both the Virtual Host and .htaccess files are given…
Khuram
  • 101
  • 2
  • 11
-1
votes
1 answer

Alias not working in VirtualHost for a domain but works locally on localhost?

I have created a virtual host locally using domain name virtual hosting in which I have used an Alias to a directory pointing to another project on the same server (my local host) as given below: ServerAdmin admin@mail.com …
Khuram
  • 101
  • 2
  • 11
-1
votes
1 answer

What is the Ideal way to spoof files in nginx (alias, try_files or rewrite)

I'm trying to spoof file location by sending long url to the server, the server translate it to the proper php file and return the result, example: I send a link like this: http://example.com/fakelocation/123/456/789 I want the server to translate…
Cyb3r
  • 17
  • 4
-1
votes
1 answer

Amazon Route 53 domain mapping

We have some EC2 instances running NGINX that will be accessed via a loadbalancer that can be reached via www.example.com. The loadbalancer redirects the traffic to the appropriate EC2 servers. This works fine, but sometimes we want to bypass the…
-1
votes
2 answers

nested Cmnd_Alias in sudo configuration

im trying to simplify my sudo configuration but not sure if sudo supports this configuration. I have a "view" command alias which we use to provide access to log files: Cmnd_Alias VIEW = /bin/cat, \ /bin/zcat, \ …
Mark V
  • 121
  • 6
-1
votes
1 answer

How to configure Dovecot to allow alias to login

I use dovecot with a Mysql for user account and aliases. The aliases are objects of the class couriermailalias. Some users would like to use the alias address as POP/IMAP login instead of the 'true' account. Is this possible?.
-1
votes
1 answer

DNS alias configuration at the local server level

I'm wondering if it's possible to alias one domain for another at the server configuration level in a similar way that you can alias a domain to an IP address in the /etc/hosts file. This is on a flavor of RedHat Linux. I thought this would be…
cowper
  • 111
  • 2
-1
votes
2 answers

display DNS Alias a a physical machine

How can I display a DNS Alias as a physical machine in the list of available computers when I open the network window. I have applied this procedure (How to Configure Windows Machine to Allow File Sharing with DNS Alias) with no success. The Alias …
-1
votes
2 answers

Add IP Address without Plesk

I have an dedicated unmanaged server and added a few IP addresses to it (allocated), and the only information my hosting company has provided is instructions on how to use Plesk to Add IP Addresses. However, one of the first things I did was…
CrackerJack9
  • 119
  • 1
  • 7
-1
votes
3 answers

Set alias or environmental variable in Unix

I have a VPS and an associated IP address for it. I'm doing a lot of work with it in my bash shell and I'm wondering if there's some way I can create either an alias or a environmental shortcut for the IP address to avoid having to type it every…
Casey Flynn
  • 217
  • 4
  • 13
-1
votes
3 answers

Apache2 alias in virtual host

I have multiple virtual host in one server and plan to has some alias setup in one virtualhost. So I add the Alias /foo/ /path/to/foo/ in virtualhost directive,but it has no effect. Request of host1/foo/ will return 404. But if I add this to…
0x7c00
  • 1
  • 1
-1
votes
1 answer

How to authenticate multiple IMAP users to the same mailbox in Cyrus

I have a standard Postfix/Cyrus setup with email account like account1@myhost.com. Users authenticate via IMAP. I want to create an email alias account like otheraccount1@secondhost.com and authenticate it to the same IMAP mailbox as…
akafazov
  • 7
  • 2
-1
votes
1 answer

CNAME from 1 subdomain to another subdomain

I have added a CNAME from order.checkoutchiangmai.com to restaurant1.acemsweb.com. The result I have is "Apache is functioning normally" when I open order.checkoutchiangmai.com. I am unsure why the restaurant1. domain does not show, as when I check…
-2
votes
1 answer

How to turn this into an alias?

I frequently use this command: grep -rnw donkey | grep market | cut -c -80 How can I change it into an alias on Linux? I tried: alias search='grep -rnw $1 | grep $2 | cut -c -200' But when I run it with search hello world it gives me: cut: Usage:…
Ginger
  • 103
  • 6
1 2 3
22
23