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 sub-folder with separated root

I have a little problem. I have a wordpress installation in /var/www/xyz/wordpress and now I want to have a piwik installation in the path /var/www/xyz/piwik My current nginx configuration looks like this: server { ... root…
user3641396
  • 31
  • 1
  • 1
  • 1
0
votes
2 answers

set bash alias from bash script (not command line)

Differently from bash shell (for create new alias): alias test="echo test" if I do the same thing using a bash script, alias does not run: #!/bin/bash alias test="echo test" also export it, same problem: alias test="echo test" ; export test maybe…
Pol Hallen
  • 1,095
  • 2
  • 13
  • 24
0
votes
2 answers

Apache Alias to link to another DocumentRoot

I have a WordPress installed in /var/www/wordpress/ and my own code in /var/www/project/ Now comes the following problem: When I try to access example.com/client/ or example.com/admin/ it should link to /var/www/project/ and execute the .htaccess +…
Aley
  • 209
  • 2
  • 4
  • 16
0
votes
1 answer

Linux: Ignored entries in aliases file

I am trying to configure my RHEL6.5 server to send all emails addressed to root or apache to go to my external email address. I have found many guides on doing this and tried all of the suggestions I could find, including using Virtual Domain…
Ethan
  • 101
  • 2
0
votes
1 answer

Postfix Regex Alias with Text Substitution

I'm migrating from an older email structure ([first letter of first name].[last name]@company.com) to [first letter of first name][last name]@company.com. To ensure that mail sent to older addresses is received by the necessary people I would need…
Chris Smith
  • 163
  • 4
0
votes
1 answer

alias directive with nested location to catch php files - requests for php files giving 404

I have a directory/web app that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: /var/www/apps/coolapp/ My question is how can I configure nginx to map/route…
Nick Rolando
  • 123
  • 2
  • 7
0
votes
1 answer

Forwarding a domain to another subdomain

I have 2 domains jainaditya.in (domain purchased from GoDaddy and currently parked) and techphernalia.com (domain and web hosting from one.com). I created a subdomain ajain.techphernalia.com. Requirement : When I point to jainaditya.in it should…
0
votes
1 answer

Use htaccess to alias to different hosting

I have a host my.site.com that doesn't support a PHP version that I need, so I got some new hosting at newsite.com that has a more up to date PHP version. I'm going host the site completely on newsite.com, but I want people to type in my.site.com to…
David Sawyer
  • 101
  • 1
0
votes
1 answer

Why am I getting a 403 in attempting to access view-source:https://ccachicago.pragmatometer.com/admin/static/css/base.css?

I've been trying by hook or by crook to get /admin/static/ served up in an Apache SSL VirtualHost, preferably by Apache (which is forwarding SSL traffic to a Django Gunicorn instance), or barring Apache, at least Gunicorn serving up static content…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
0
votes
1 answer

Alias link doesn't open correct page

Here is the full config of my site: server { server_name back.mysite.com; access_log /home/django/mysite/deploy/logs/nginx_acc.log; error_log /home/django/mysite/deploy/logs/nginx_err.log; location / { uwsgi_pass …
Vlad T.
  • 555
  • 1
  • 4
  • 10
0
votes
0 answers

Setting SNMP interface aliases

I've been trying for a long while now to get a set of Allied Telesis switches to display links in OpenNMS. Long story short, I want/ need to set interface aliases for ports. If I use snmpwalk -v2c -c mycommunitystring myhost 1.3.6.1.2.1.31.1.1.1.18…
rhobincu
  • 103
  • 1
  • 7
0
votes
1 answer

Openshift PHP app throws "404 Page not found error" with custom domain name

I have a PHP app on Openshift which is working fine with the native URL (e.g xyz-xy.rhcloud.com). Later I added an alias to the app(e.g, www.xyz.com) and I also updated the CName in my Zone file at godaddy.com. When I enter www.xyz.com, it redirects…
0
votes
1 answer

Alias with regex

I want to forward an email from domain1.com to domain2.com using /etc/aliases The incoming email has the following syntax: mail+somerandomstring@domain1.com and should be forwarded to mail+somerandomstring@domain2.com The problem is that the part…
horen
  • 411
  • 2
  • 7
  • 22
0
votes
1 answer

How to send emails stored in /var/spool/mail/root to a gmail inbox

I am new to managing a VPS. The host name for my vps is vps.techbreeze.in and recently I discovered that if i try to send a mail to an address like say rick@techbreeze.in the email gets sent to the /var/spool/mail/root However if I send an email to…
Rick Roy
  • 237
  • 1
  • 5
  • 15
0
votes
1 answer

How does Postfix handle conflicting aliases?

I've got several alias files being used as sources for virtual aliases in Postfix, one of which is auto-generated. Sometimes, this one contains aliases that conflict with those declared in static files; how does Postfix decide which alias to…
Iain Hallam
  • 447
  • 2
  • 6
  • 22