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
4 answers

how to make alias with quotes

I tried to make alias with quotes as following: alias myalias='ps -ef | grep tomcat | kill -9 `awk {'print $2'}`' but as you can see i already have ' in awk so i tried to replace awk {'print $2'} with awk {"print $2"} but then strange things…
Jas
  • 701
  • 4
  • 13
  • 23
1
vote
2 answers

Postfix alias [user unknown] issue

So I need to create an alias on my postfix server that will redirect all mail to multiple email addresses. I have postfix + postfixadmin with dovecot up and configured and everything seem to be working just fine and server is able to receive email…
Screatch
  • 179
  • 1
  • 2
  • 10
1
vote
1 answer

Show website on one server in subfolder on another server

I have two websites. One website is a microsite developed by someone else, hosted on a subdomain and I would like to serve this website via a URL on the second website, for example: test.maindomain.com - This is the website hosted on a seperate…
2scope
  • 11
  • 2
1
vote
2 answers

Router see IP alias?

On my Win7 host machine, I have two VMs which I test network/server stuff. On one machine I created an IP alias using the following commands from http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html#NETWORKALIASING (edit to fit my…
Jay Adams
  • 11
  • 3
1
vote
0 answers

Pass a traffic from a specific domain through OpenVPN

I want to pass traffic from a specific domain through openvpn (tun0) and the rest through eth0 How can I configure openvpn to work with eth0? the domain name is set with ddclient to update dynamic dns. but i checked with tcpdump and requests are not…
Orlo
  • 231
  • 1
  • 3
  • 11
1
vote
1 answer

Apache Alias subfolder and starting with dot

I have a multi purpose server running ArchLinux that currently serves multiple virtual hosts from /var/www/domains/EXAMPLE.COM/html /var/www/domains/EXAMPLE2.COM/html I deploy those websites (mostly using Kohana framework) using a Jenkins job by…
MauricioOtta
  • 162
  • 2
  • 8
1
vote
1 answer

LDAP and DAV with AuthnProviderAlias not working

I have a working apache 2.4 config for ldap with svn ... DAV svn SVNParentPath /var/ldapsvn SVNAdvertiseV2Protocol Off …
zidarsk8
  • 394
  • 1
  • 3
  • 12
1
vote
1 answer

Apache Alias subdomain/folder to folder above subdomain

What I want to do is to create an alias at http://subdomain.example.com/login that points to /usr/.....etc/htdocs/example/login so that anytime someone is redirected to http://subdomain.example.com/login where they will end up is at…
dgo
  • 133
  • 10
1
vote
2 answers

How to add domail alias in iRedMail open source edition?

Looking at the vmail database of the iRedMail installation I see an alias_domain table which is currently empty. Is it possible to add domain aliases with a MySQL query directly on the vmail.alias_domain table?
MechaNikos
  • 11
  • 1
  • 2
1
vote
2 answers

nginx location overwrites alias

I have an alias "/temp" that works ok, but when I add another location block, the alias returns 404. Working config: http://mysite.com/temp/blank.gif -> OK server { # ... location /temp { alias /var/www/temp; } #…
Luistar15
  • 113
  • 4
1
vote
1 answer

(EXIM) ACL for only allowing internal domain to send to internal group alias

I'm trying to create an ACL rule that will only allow internal users/white listed users to send to particular group aliases such as all@ or office2@ I know I need something similar to: deny log_message = $sender_address is not permitted to…
Samuel Jones
  • 228
  • 4
  • 13
1
vote
1 answer

Setting "say" alias for espeak on Ubuntu Linux

I'm trying to make a compatible "say" command on Linux. So far this works: alias say='echo "$1" | espeak -s 120 2>/dev/null' I'm adding this to /etc/bash.bashrc. Problem is, this say is called from my_ruby_file.rb. I understood what's the problem,…
valk
  • 497
  • 2
  • 9
  • 20
1
vote
2 answers

LUN device file names mixed

The following listings are from a Linux RHEL box. I'm a bit confused over the following inconsistencies. Here we have aliases defined for each LUN in multipath bindings file: mpath0 36006016071602e0026025fa3eff2e111 mpath1…
XO01
  • 113
  • 8
1
vote
1 answer

Apache differentiates between files and folders

I am running an Apache server with Aliases to "www" folders in user directories. If I go to "domain/~user" I get a 404, but "domain/~user/" is served correctly. I am assuming this is because there is no file called "~user" but there is a…
excelangue
  • 43
  • 3
1
vote
0 answers

Apache VirtualHost Aliases

I'm super new to Apache and I am trying to get mutiple sites running on one host; OpenPhoto and ownCloud. I would like mydomain.com/openphoto and mydomain.com/owncloud to point to their respective services. I have them both installed but only they…