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
dtc_setup_vps_disks(8)					      System Manager's Manual					    dtc_setup_vps_disks(8)

NAME
dtc_setup_disk - setup LVM disks for using it as a VM SYNOPSIS
dtc_setup_vps_disk.sh VPS_NUMBER HDD_SIZE SWAP_SIZE [ lvm|loopback ] DESCRIPTION
dtc_setup_vps_disk.sh This shell script is a part of the dtc-xen package that is to be used by the dtc panel to manage a Xen VPS server. This script is used to create partitions to be used by a VPS later on. It will create a normal partition that will be used as a root disk, and a swap partition. dtc_setup_disk is to be used by the dtc-xen SOAP server, but can also be used as a standalone userland tool. If the partition(s) exists, then this script will delete it/them first. OPTIONS
VPS_NUMBER has to be a number between 01 and 19. Let's say the number is 16, and that dtc-xen is configured to use the volume group called lvm1, then this script will create /dev/lvm1/xen16 and /dev/lvm1/xen16swap. HDD_SIZE Size in MB of the VPS partition to create. SWAP_SIZE Size in MB of the VPS swap partition to create. If the dtc-xen SOAP server is used to create the VPS, then it will create a swap partition of the exact same size as the memory. IMAGE_TYPE This parameter can have 2 values: either lvm or loopback. If ommited, then lvm is used. If lvm is used, then this script will create a partition using lvmcreate, otherwise it will create an image file. Both will later be used for the VPS. EXAMPLE
dtc_setup_vps_disk 04 15360 256 lvm This will create 2 LVM partition to be used by the VPS named xen04, the first one being a root partition of 15 GB, and the second one being a swap partition of 256 MB. VERSION
This documentation describes dtc_setup_vps_disk version 0.3.15. See http://www.gplhost.com/software-dtc-xen.html for updates. SEE ALSO
dtc_reinstall_os(8), dtc_kill_vps_disk(8) dtc_setup_vps_disks(8)
All times are GMT -4. The time now is 10:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy