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

Nginx alias not working

I'm trying to pass all traffic at location ^/[a-z0-9]{24}$to index.html at a different root directory. I have my config set up like so: server { listen 80; server_name example.com; return 301 https://$host$request_uri; } server { …
jwerre
  • 768
  • 3
  • 12
  • 26
0
votes
1 answer

Setting email nickname for aliased domain in Google Apps

I have set up my main domain for Google Apps (intecro.com) and I've set alias domain in Google Apps for (intecro.cz). I have administrator account admin@intecro.com and it automaticaly gave me nickname admin@intecro.cz, which is great, but I am…
Jakub Arnold
  • 1,744
  • 10
  • 26
  • 33
0
votes
1 answer

IPSEC VPN site-to-"alias"

I am trying to connect my CentOS (CentOS release 6.7) server to a 3rd party VPN so traffic can be routed between my Apache instance listening on an aliased private IP (192.168.253.1), through the tunnel. My server's physical NIC is connected to the…
0
votes
1 answer

Website prefixed with XXX is working (XXX.example.com) but not without it (403 error)

I had a Redirect permanent in my apache config file, so I don't know when the 403 error for example.com started happening. # When attempting to fix possible permissions issues due to 403 Require…
user353390
0
votes
1 answer

Nginx - serving static files

What am I doing wrong here? This works: location / { alias /var/www/static/; try_files $uri index.html =404; } But this doesn't: location /hello { alias /var/www/static/; try_files $uri index.html =404; } Here is the error I'm…
Rasmus73
  • 1
  • 1
  • 1
0
votes
1 answer

Setup DNS shortcut with BIND

I need to setup an internal shortcut for DeployStudioPC in BIND to point the alias "deploystudiopc" to an IP address. I can't see how to set that up. I can add it to one of my internal zones, but then it would be a subdomain. How do I setup one…
Mr. RCollins
0
votes
1 answer

NGINX - Cannot set Cache-control for redirected .js files (with alias + rewrite)

I have successfully setup an nginx server which uses both alias + rewrite as in the below configuration. Everything works except that javascript files are not enforced browser caching. Server url: http://localhost/ Server root: /space1/www An…
CEDA
  • 3
  • 1
  • 3
0
votes
2 answers

Redirect subdomain.domain.org to domain.com which is expired

I have 2 domains and both are on my server and both are registered by me. But the problem is that one of domains expired yesterday and i need to access it's data through the url urgently but i can't renew it in next few days. So i can access both…
lonerunner
  • 124
  • 1
  • 4
  • 16
0
votes
0 answers

Postfix and PostgreSQL: How to make same aliases work for different domains?

I've currently three domains. I want to setup (mostly) the same aliases for every domain and retrieve the mails on Thunderbird. It already works to send/receive mails for contact@domain1.com, contact@domain2.net and contact@domain3.de but now I need…
John Doof
  • 179
  • 3
  • 10
0
votes
1 answer

Requesting nginx using a public ip works, but using the host alias doesn't

As the title suggests, I have a public ip address (it's the address for an azure VM running ubuntu server fyi) which has an nginx server listening to requests on port 80. Entering this public address into the browser succeeds in receiving a response…
jonny
  • 173
  • 1
  • 10
0
votes
0 answers

Nginx problems with alias, photo is not displayed

Here's what I have: /usr/share/nginx/htmlNouveau/images/logo.gif my photo logo.gif; /usr/share/nginx/htmlNouveau/index.html my index.html which is like this: Welcome to nginx!