Sponsored Content
Top Forums UNIX for Advanced & Expert Users CentOS VPS Server Apache Alias Post 303021280 by TBotNik on Tuesday 7th of August 2018 02:42:36 PM
Old 08-07-2018
CentOS VPS Server Apache Alias

All,

We have a hosted CentOS 6 VPS server, using CPanel to install/config the domains/subdomains and installed osTicket in:

my.domain.com/tkng/

We are trying to define the following Apache alias:

my.domain.com/tickets

which has to point to:

my.domain.com/tkng/upload/

CPanel installs the domain admin user at:

/home/myuser/

and the domain is at:

/home/myuser/public_html

Since Apache runs at /etc/httpd/

and includes the directory /etc/httpd/conf.d/

I created file /etc/httpd/conf.d/alias.conf with this definition:

Code:
    Alias "/tickets" "/home/myuser/public_html/tkng/upload" 

                      <Directory "/home/myuser/public_html/tkng/"> 

                           Options Indexes MultiViews FollowSymLinks 

                          AllowOverride All 

                          Require all granted 

                     </Directory>

This has no effect!

Some of what I read suggest putting the alias in the domain .htaccess file, others say I need a symlink. Some others say I need a different path statment but not sure if they are talking about making the symlink first and using that path or not.

What I can tell is that CPanel makes setting up an Directory Alias very difficult and there is a page labels Aliases inside of CPanel which is not aliases at all but instead Virtual Domains.

Need some help here to get this concept right to finally be able to get a working alias.

Going to also install some other apps on this domain, so getting this first alias right is critical.

Thanks!

TBNK
 

8 More Discussions You Might Find Interesting

1. Red Hat

Unable to Start X in Centos - VPS - SSH

# startx xauth: creating new authority file /root/.serverauth.18174 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: Linux 2.6.18-53.el5 i686 Red Hat, Inc. Current Operating System: Linux server1.... (0 Replies)
Discussion started by: mselvaprakash
0 Replies

2. Web Development

Apache How to 'alias'/'locate'/'redirect' subsite to another internal server?

Apache Experts! We have 'n' servers behind a firewall. One of these, 'Machine A', is the DMZ, and is world facing. It serves up any number of Apache Virtual Hosts already, no problem! Now, how do we 'attach' another server - currently visible only to the internal subnet - such that its... (3 Replies)
Discussion started by: Dr Lou
3 Replies

3. Red Hat

Installed apache server , can't connect from outside (using CentOS in WMware )

Hello all I installed apache in CentOS 5.5 ,after searching the web for tips on configuration I did the fallowing stuff to unable connecting the http server from outside. In /etc/httpd/conf/httpd.conf I changed the Listen value to 0.0.0.8011 Then checked with then check with: netstat -anp and I... (2 Replies)
Discussion started by: umen
2 Replies

4. UNIX for Advanced & Expert Users

Mail server in centos!!

Hi all!! 1. I am totally new to Mail server but now in our management decided to run own mail server, still now we are running our mail server using godaddy!! if we transfer all mail accounts to here means what are the steps i need to do?? 2. I have basic idea in postfix , which... (2 Replies)
Discussion started by: anishkumarv
2 Replies

5. Linux

Moving Whole OS Centos Server

I currently have a web server its on a small harddrive I didn't know my site would grow so fast but now I need a bigger hard drive. Instead of adding another harddrive (host charge monthly of how many hard drives connected to server) is there anyway to just move the whole os to a bigger hard drive... (2 Replies)
Discussion started by: awww
2 Replies

6. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

7. Web Development

Building LAMP server from scratch (build a server with compiled LAMP from CentOS mini)

Hello everyone, I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself. I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help! First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies

8. Red Hat

CPU high - apache real server OK, virtual server not

Got two RHEL servers - one real and one virtual/cloud. Both run apache web server. When traffic is applied, CPU seems to go quite high on virtual one (20%) but real is not really affected. Worry is that a further increase in traffic will see a problem. Experience of RHEL is limited. Whats... (2 Replies)
Discussion started by: psychocandy
2 Replies
aliasadm(1M)						  System Administration Commands					      aliasadm(1M)

NAME
aliasadm - manipulate the NIS+ aliases map SYNOPSIS
aliasadm -a alias expansion [options comments] optional flags aliasadm -c alias expansion [ options comments] [ optional flags] aliasadm -d alias [ optional flags] aliasadm -e alias [ optional flags] aliasadm -l alias [ optional flags] aliasadm -m alias [ optional flags] aliasadm [-I] [-D domainname] [-f filename] [-M mapname] DESCRIPTION
aliasadm makes changes to the alias map. The alias map is an NIS+ table object with four columns: alias The name of the alias as a null terminated string. expansion The value of the alias as it would appear in a sendmail /etc/aliases file. options A list of options applicable to this alias. The only option currently supported is CANON. With this option, if the user has requested an inverse alias lookup, and there is more than one alias with this expansion, this alias is given prefer- ence. comments An arbitrary string containing comments about this alias. The sendmail(1M) command reads this map in addition to the NIS aliases map and the local /etc/aliases database. OPTIONS
-a Add an alias. -c Change an alias. -d Delete an alias. -e Edit the alias map. -I Initialize the NIS+ aliases database. -l List the alias map. -m Print or match an alias. -D domainname Edit the map in domain domainname instead of the current domain. -f filename When editing or listing the database, use filename instead of invoking the editor. -M mapname Edit mapname instead of mail_aliases. FILES
/etc/aliases mail aliases for the local host in ASCII format ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
sendmail(1M), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.10 12 Dec 2001 aliasadm(1M)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy