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

Postfix with external alias rejected

i have a problem with external aliases on my server. There are aliases for my users so they can retrieve mails on their personal mailaccount. For example: user1@mydomain.com user1 user1@gmail.com user2@mydomain.com user2…
laubed
  • 66
  • 1
  • 4
0
votes
1 answer

Multiple Domain Names. Alias not Redirection

I need to get my new domain for example.net to not only respond to the same content as I have for the existing example.com, but I need the user to actually still only see example.net when they get to the site. I thought this would work simply by…
0
votes
0 answers

Unable to load PHP files from second server directory

My server has a root directory which is /home/forge/example.com/current/ionic/www and a secondary API PHP directory, located /home/forge/example.com/current/public. When the user browses to example.com/api the website should load from…
Ian Arman
  • 123
  • 3
  • 8
  • 15
0
votes
1 answer

Windows server, temporary alias name, only visible from one machine

Two weeks ago our IT department migrated a huge network folder from an older server to a newer one. For example, the older folder was reachable under \\oldserver\ourfolder and the new one under \\newserver\ourfolder Note the old server is still…
Doc Brown
  • 101
  • 3
0
votes
3 answers

Including additional alias files in Sendmail

I've run into an issue with a piece of third party software that creates it's own alias file to be used by sendmail. Looking through the configuration options, google, and the man pages it seems like I can only define one alias file which means…
TrueDuality
  • 1,874
  • 5
  • 27
  • 37
0
votes
0 answers

Apache alias a short extensionless symbol to a file

I would like to have a short url like: https://myDomain/essr to evaluate to: https://myDomain/dir1/dir2/myFile.html I've been trying to use alias in my apache config but I haven't been able to make it work. How would you go about it? If the file…
Bob Brunius
  • 101
  • 2
0
votes
0 answers

NGINX Remove index.php in URL Rewrite

i had to modify an NGINX configuration to allow getting the static files from a different folder. server { listen 80; server_name app.test; root "/home/vagrant/app/public"; index index.html index.htm index.php; charset utf-8; …
JonnySerra
  • 111
  • 5
0
votes
1 answer

How to know if connection is made to a server using alias or not?

Is there a way to know if the connection to a host is made via an alias or using the direct host name itself? This is in Linux. Basically I want to find out what are the connections made to my DB server host using the direct host name itself (and…
0
votes
1 answer

Virtual Alias File Using Regular Expression in Exim 4.89

I would like to thank you in advance for taking my question. I am deploying a mail server using Exim, version 4.89, and would like to use a virtual alias file using regular expression to forward incoming mail to an internal user. My virtual alias…
0
votes
1 answer

Can't connect to site in IIS through DNS Alias, but can connect through localhost

I have a site in IIS configured and visible over localhost. I have also set up an CNAME Alias within the DNS to point to this server as 'main' and set up the bindings for the site with 'main' over port 80. From the server the site is configured on,…
Beast-a-tron
  • 111
  • 2
  • 6
0
votes
1 answer

Nginx location alias for theme files

I'm trying to move my theme files outside of document root. I'm using nginx for the server and I've tried using alias and root directives in a location block. Nothing I've tried works and I suspect it's the try_files directive inside location /. I…
KahunaCoder
  • 121
  • 1
  • 4
0
votes
2 answers

Bash directory alias/redirect

I'm trying to compile a library and his dependencies (lots of dependencies), but the system that I'm using didn't have the usual directory structure. I'm searching for a method to "redirect" all the scripts callings to, for example, /bin/sh to…
Michele
  • 101
  • 6
0
votes
0 answers

Nginx is not serving Perl files

I am running Nginx server on Debian 9. My problem is that, Nginx is serving Perl files in root directory, but it is not serving in alias directory (I get 403 Forbidden). This is my configuration of alias: include /etc/nginx/fastcgi_params; …
tomsk
  • 287
  • 1
  • 6
  • 18
0
votes
0 answers

Mapping alias in virtual host for a website - URL routes do not work

I have two Laravel sites: a front page and an API site. My customer will later separate the API site on a subdomain, but for the time being the customer wants to serve the API from inside "subfolder" of the landing page (mostly because he does not…
JustAMartin
  • 231
  • 1
  • 18
0
votes
1 answer

Proxy Plesk through apache alias

I have a VPS that I installed Plesk into. It has an external IP but only ports 22,80,443 are allowed through the firewall. Plesk uses port 8443 so currently the only way to access it is to tunnel through SSH. Is it possible to use a Alias to proxy…
Joe Chin
  • 103
  • 3