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
0
votes
1 answer

Is DNS flush needed on the clients when DNS alias is updated?

We have a DNS alias set up for an SQL database server. We will be upgrading the SQL server to a new machine, and the machine name will be different. DNS alias will be updated with the new name on the Domain Controller. Question: Do I need to do…
myroslav
  • 103
  • 2
0
votes
1 answer

Recognize subdomain alias

I have Debian virtual server on some sub-domain (for example subdomain.domain.com) and i have alias for this sub-domain (for example alias.domain.com), of course when I use both of this sub-domains (for example ping them, or log in with…
0
votes
3 answers

SQL 2012 server alias works locally but not remotely

I'm preparing for a server migration and am attempting to redirect a named instance of SQL Server 2012 (DW) to the default instance. There is currently no DW instance on the test server - I'd like to avoid re-creating it and consolidate all of our…
davejroth
  • 3
  • 1
  • 2
0
votes
1 answer

Command works independently, but not as SSH callback

A MySQL cloud server only allows remote access to a certain server (in this example, 11.22.33.44). Running the following commands from the terminal is verified to work: ssh -p 40000 user@11.22.33.44 mysql -u dbuser -p -h example.com But when…
Kyle Cureau
  • 1,537
  • 3
  • 11
  • 15
0
votes
1 answer

nginx alias using php5-fpm response 404

I use php5 fpm using nginx. but i have a problem. # debug alias location /bb/ { alias /usr/share/blahblah/; } file on http://mysite.localhost/bb/index.php was not found. but it's still on /usr/share/blahblah/index.php and this is an error: *1…
0
votes
4 answers

Alias to twisted server content?

I have buildbot, using twisted, configured to run on port 8010. If I navigate to http://mysite.com:8010 I can access everything just fine. However, I want people to see the page at http://mysite.com/build Right now I redirect, but I'd prefer to…
bias
  • 225
  • 3
  • 13
0
votes
2 answers

Perl scripts can't be run from an alias

I created the following Alias in httpd.conf: alias /aliasedfolder /some/location/on/the/server/folder AddHandler cgi-script .pl Options +FollowSymLinks +ExecCGI Order allow,deny Allow from all AllowOverride…
0
votes
1 answer

apache, shibboleth, load balancing alias, ssl

Good morning folks Could you give me a bit of help with the following problem ? I have a dns load balancing mechanism and an alias (hostAlias) which may point to host01, or host02 I want to configure apache and shibboleth to work with that…
Nikolaidis Fotis
  • 2,032
  • 11
  • 13
0
votes
2 answers

Apache Alias / VirtualHost run as different user

I tried to create an alias or virtual host to run as different user. Well below is part of apache httpd.conf that doesn't work. Or, is it even possible? user DifferentUser group DifferentGroup ServerAdmin blah …
checksum
  • 1,015
  • 1
  • 11
  • 15
0
votes
2 answers

Postfix sends to original recipient name instead of alias name

I have setup Postfix as part of my ISPConfig implementation. It should just forward all mail. Clients should be able to define a new alias and receive mail on a different e-mail address, using ISPConfig. Example: A mail sent to user1@domain1.com on…
Tiesert
  • 9
  • 3
0
votes
1 answer

How can I make an alias expand to a list of recipients returned by a command?

I have an rarely used /etc/aliases entry vmailusers: :include:/usr/local/etc/vmailusers The /usr/local/etc/vmailusers file is generated by a cronjob executing ls /home/vmail | grep -v lists > /usr/locale/etc/vmailusers chmod 0640…
Frerich Raabe
  • 801
  • 7
  • 16
0
votes
2 answers

Nginx alias and regex

i'll need a bit of help for alias on folder with nginx I have my folder www/ with the container of my site example.com and a lot of folder like client0, client1, client2... I should NOT modify www/example/ but i need that example.com/serveur0/ to be…
Totobro
  • 1
  • 1
  • 2
0
votes
1 answer

How do I create alias below documentroot in apache

I'm trying to create a bin folder accessible to a virutalhost beneath the document root. I currently access the folder through mysite.local/bin, but need the files to be beneath public access. httpd.conf Alias /bin/ "C:/wamp/www/bin/"
0
votes
1 answer

avoiding alias at command prompt

I have following alias and it is working as expected. alias mysql='LD_LIBRARY_PATH=/usr/local//mysql/lib/:/usr/local//mysql/lib//mysql /usr/local//mysql/bin//mysql' My question is there are a few other commands like mysqldump , mysqladmin those…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

Apache Alias - removes POST data?

I have an alias in my httpd.conf where I'm redirecting a single PHP file to another PHP file located in a different dir. Though it appears as thought data POST'd to this file doesn't get carried along? Is that the case? If so is there a way to carry…
waxical
  • 344
  • 2
  • 5
  • 12