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

Nginx: use $http_host in location

I got many server aliases in nginx configuration: server { listen 80; server_name example.com site1.example.com site2.example.com site3.example.com ... How i can control specific folder for alias in location of robots.txt file, for…
otakuf
  • 3
  • 1
  • 3
0
votes
1 answer

Postfix not respecting mysql alias domains

So the setup is using postfix, dovecot, postfixadmin and mysql. I have configured postfix admin to alias one domain, "name.co.uk" to "name.net", I see this in the database so there's no issue there. However, when sending mail to "name.co.uk" it is…
0
votes
1 answer

Is it possible to create a global SQL Server alias?

I understand it is possible to create a SQL Server alias on a per-client basis via SQL Server Configuration Manager, but is it possible to do it globally, on the target SQL Server server? My goal is to ultimately decommission an older SQL Server…
Conrad
  • 304
  • 1
  • 3
  • 13
0
votes
1 answer

Apache Alias to serve /blog from another directory

I'm upgrading our website, the blog hasn't been done yet so I want everything starting with www.mydomain.com/blog* to use the code under a specific directory (var/www/blog) everything else will come from another (var/www/default). I have…
out_sid3r
  • 101
  • 2
0
votes
2 answers

SMTP name too long for Canon

I am setting up a Canon iR device to scan to email, but their field name for SMTP server is too short for my MX record address. Is there a way to set-up an alias that would work round this, or some other method? Why is my MX so long? Because I am…
Angus
  • 11
  • 1
0
votes
2 answers

Filter mail recipient by alias matching with sender's domain

I use an alias for each company that I provide an e-mail contact. So, for example, in /etc/aliases somecompany: myuser The address I supply to SomeCompany would be somecompany@mydomain.com If the sender's domain is not from somecompany.com, then I…
0
votes
1 answer

Alias specific hostnames by regex to fully qualified domain name (FQDN)

Is there any way on linux to alias a group of hostnames (group specified by wildcards/regex) starting i.e c-* to fully qualified domain names i.e c-hostname -> c-hostname.domain.com Thank you, J.
Jibrilat
  • 101
0
votes
0 answers

Nginx regex alias on common location

I am trying to recursively serve the content of a folder for several customer IDs to pertain backwards compatibility to a respective application beyond my influence. I want all URLs paths beginning with…
Richard Neumann
  • 144
  • 1
  • 8
0
votes
1 answer

Exim4 email forward not working

I have been trying to set up an email forward on my server, which uses Exim 4. I want to forward all emails sent to steve@mydomain.com to john@mydomain.com. From reading elsewhere and looking at a previous answer on here I understand I need to edit…
0
votes
1 answer

Is it possible to chain relative MX records?

I need to make an "MX chain" as the following: @alias.mydomain.net --> @mail.mydomain.net --> @smtp.targetdomain.net (1) (2) (3) Say an SMTP server exists at smtp.targetdomain.net: $ host…
Morgan Courbet
  • 113
  • 1
  • 1
  • 6
0
votes
1 answer

Exchange 2013, partnerships, domains, & out of office

Background: I work at a company with several confidential business partnerships that require employees to appear as though they work for another company/brand and use multiple domains via email in accordance with whatever brand they happen to be…
0
votes
1 answer

LDAP: Posix group alias

I have a group in my LDAP ('devteam') that I use for login on all machines of the parc. I would like all these users to also belong to the group 'docker', that allows them to manipulate the docker daemon. The problem is this: I don't want to have to…
Gui13
  • 43
  • 1
  • 9
0
votes
0 answers

how to undo 'Alias' in Virtualhost

I wanted www.domain1.tld/domain2 to point to /www/directory2 So I added an 'Alias line' to my Virtualhost config apache2/sites-available/domain1.conf like this: ServerName www.domain1.tld DocumentRoot /www/directory1 …
thanks_in_advance
  • 173
  • 1
  • 2
  • 8
0
votes
1 answer

nginx downloads php instead of processing it

I have been trying to make a simple alias in nginx and the furtherest I could get is to get the server to send me the file. When I visit /xhprof_html in my browser the server asks me to download the index.php file instead of executing it. What am I…
dasj19
  • 433
  • 1
  • 3
  • 11
0
votes
3 answers

Have 2 different applications use 2 different ip's with the same port on the same host

I want to have an application running on x.x.x.x:80 and another one at y.y.y.y:80 on the same host. I have bought 2 ips from ovh and would like to know how to do so. I found these: Debian/OVH: How to configure multiple Failover IP on the same Xen…
user325985