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
vote
1 answer

How can I fix an Apache redirect loop

I have a strange Apache/WordPress redirect loop that I can't seem to figure out. Here is the relevant logs and other info: http://pastebin.com/E1afW2vw It seems that the page request gets made, and it tries to redirect to the proper directory based…
Benjam
  • 113
  • 6
1
vote
3 answers

Server Alias (network drive) using WAMP

I have a folder on a network drive (X:/) and my WAMP is on C:/. I use WAMPS 'Add an alias' tool and point /bymnew/ to X:/Brief Your Market Integration/data/website. The alias is created and looks like this: Alias /bymnew/ "x:/Brief Your Market…
rickyduck
  • 139
  • 1
  • 2
  • 9
1
vote
2 answers

Given a hostname, how do you find all its aliases (i.e. CNAME records) WITHOUT direct DNS file access?

Possible Duplicate: Querying DNS for CNAMEs for a server I have an interesting problem, given a FQDN, how do you find all its alias names WITHOUT having access to the DNS files or being able to list the domain (zone)? The issue is restricted to…
mdpc
  • 11,856
  • 28
  • 53
  • 67
1
vote
2 answers

Ignoring /etc/aliases with mailx

Is it possible to ignore the alias expansion with mailx? I'm trying to get something sent with a null message body and don't want it to take the local username.
atx
  • 1,281
  • 1
  • 9
  • 26
1
vote
1 answer

Windows mail server that supports username wildcard aliases?

Is there any free mail server (in this case POP3) for Windows that supports aliases? e.g. User name: iboyd Aliases: ian@serverfault.com ian.*@serverfault.com amanda@serverfault.com *@ianboyd.com User name:…
Ian Boyd
  • 5,293
  • 14
  • 60
  • 82
1
vote
1 answer

Alias to user directory

In Apache2 I would like to dynamically Alias urls like this: Alias /foo /etc/myapp/foo/www Alias /bar /etc/myapp/bar/www Alias /noob /etc/myapp/noob/www and so forth, where /xxx is any existing directory under /etc/myapp that contains a subdirectory…
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
1
vote
2 answers

Simple URI redirection / alias in Nginx

Please, how can I make this simple operation in Nginx: I wish that every requests for uris like: http://example.com/adm or: http://example.com/adm Goes to the wordpress login page: wordpress/wp-login.php (The wordpress installation is…
Roger
  • 473
  • 11
  • 22
1
vote
2 answers

Alias email address sbs2008

I am trying to add a second email address to a user in sbs 2008 but i cannot find any option to add more than 1 email address. Any suggestions on what i should be doing. Thanks
ben950
  • 319
  • 2
  • 8
  • 18
1
vote
1 answer

receiving two emails to virtual alias

have a virtual alias setup in /etc/postfix/virtual that reads: @mydomain.com mydomainincoming I then have a pipe setup in /etc/aliases that reads: mydomainincoming: "|/var/path_to_script/myscript.php" whenever I send mail to more than one user such…
1
vote
2 answers

Alias for Kate editor

How can I create an alias in .bashrc for Kate editor, in order not to write kate file1 file2, but k file1 file2 for opening those files.
Narek
  • 245
  • 1
  • 4
  • 15
1
vote
2 answers

How to scope access to a service to set of users, using OpenLDAP, and only OUs

Okay, here goes. Solving this will solve several problems for me (as I can reapply this knowledge to several extant, similar problems), but luckily I have a very specific, concise problem to describe. Enough preamble. Our hosting partner is setting…
JDS
  • 2,598
  • 4
  • 30
  • 49
1
vote
1 answer

Forward (Alias? Redirect? Route?) subdomain to a directory in Nginx config

I would like to alias m.example.com so that the requests are forwarded/aliased to example.com/m/ but without the user being redirected to the /m/ directory. For example, the user accesses m.example.com, m.example.com/1.htm, m.example.com/2.htm but…
user10270
1
vote
1 answer

sudo as a user that has sudo rights?

Alice has sudo rights. Bob does not (this is not changeable), but does know the password to Alice's account. If Bob wants to perform administrative commands he must: su alice fill in Alice's password for su sudo whoami fill in Alice's sudo…
FLX
  • 141
  • 8
1
vote
4 answers

apache virtual hosts vs. alias, what is better?

I've been building a dev machine over the last week and it has created some interesting question in my head. One of which is whether setting up an apache vh is better than creating an alias. Now, I know the answer here is going to be "it depends".…
Kevin
  • 301
  • 1
  • 3
  • 12
1
vote
3 answers

Running Tomcat on an Apache Alias Or Map Port numbers to Hostnames

I have WAMP installed with Apache at port 80 and Tomcat installed at port 8080. So, I access my php projects from localhost/ and java projects at localhost:8080/ Can I install or map Tomcat to a better address like localhost/java/ or betterstill a…
abel
  • 137
  • 1
  • 8