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
apache(1M)						  System Administration Commands						apache(1M)

NAME
apache - Apache hypertext transfer protocol server overview DESCRIPTION
apache consists of a main server daemon, loadable server modules, some additional support utilities, configuration files, and documenta- tion. FILES
The apache HTTPD server is integrated with Solaris. The following files specify the installation locations for apache: /etc/apache Contains server configuration files. A newly-installed server must be manually configured before use. Typically this involves copying httpd.conf-example to the httpd.conf file and making local configuration adjustments. /usr/apache/bin Contains the httpd executable as well as other utility programs. /usr/apache/htdocs Contains the Apache manual in HTML format. This documentation is accessible by way of a link on the server test page that gets installed upon fresh installation. /usr/apache/include Contains the Apache header files, which are needed for building various optional server extensions with apxs(8) /usr/apache/jserv Contains documention for the mod_jserv java servlet module. Documention can be read with a web browser using the url: file:/usr/apache/jserv/docs/index.html /usr/apache/libexec Contains loadable modules (DSOs) supplied with the server. Any modules which are added using apxs(8)are also copied into this directory. /usr/apache/man Contains man pages for the server, utility programs, and mod_perl. Add this directory to your MANPATH to read the Apache man pages. See NOTES. /usr/apache/perl5 Contains the modules and library files used by the mod_perl extension to Apache. /var/apache/cgi-bin Default location for the CGI scripts. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/htdocs Default document root. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/icons Icons used by the server. This normally shouldn't need to be changed. /var/apache/logs Contains server log files. The formats, names, and locations of the files in this directory can be altered by various configuration directives in the httpd.conf file. /var/apache/proxy Directory used to cache pages if the caching feature of mod_proxy is enabled in the httpd.conf file. The location of the cache can also be changed by changing the proxy configuration in the httpd.conf file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWapchr | +-----------------------------+-----------------------------+ | |SUNWapchu | +-----------------------------+-----------------------------+ | |SUNWapchd | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) http://www.apache.org NOTES
In addition to the documentation and man pages included with Solaris, more information is available at http://www.apache.org The Apache man pages are provided with the programming modules. To view the manual pages for the Apache modules with the man command, add /usr/apache/man to the MANPATH environment variable. See man(1) for more information. Running catman(1M) on the Apache manual pages is not supported. SunOS 5.10 8 Aug 2000 apache(1M)
All times are GMT -4. The time now is 07:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy