Solved

Apache 2 folder url direction

Posted on 2012-03-21
1
190 Views
Last Modified: 2012-03-25
I have apache2 installed and in my config I have the following.


<VirtualHost *:80>
   DocumentRoot "/home/abcx/public_html/uploads/"
   ServerName www.abc.com
   ServerAlias abc.com
</VirtualHost>


I want to point instead of www. I want to use uploads.abc.com  When I do this it points to the default install of the apache which is in /var/www/ and not point the site to the document root above.

What do I have to do to use the uploads.abc.com and point to the document root above?
0
Comment
Question by:ITCity
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
larsrohr earned 500 total points
ID: 37751037
You can list multiple ServerAlias names, e.g.
  ServerAlias abc.com uploads.abc.com
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question