Solved

Apache 2 folder url direction

Posted on 2012-03-21
1
180 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now